Send DHT11 data to PHP MySQL Server using NodeMCU ESP8266

preview_player
Показать описание
Today, I will show you how to send DHT11 data to MySQL Server. Then you can display temperature and humidity data on your own dashboard in real-time. I have just connect the DHT11 sensor to NodeMcu ESP8266. And after uploading the code, the NodeMCU start sending temperature and humidity data to MySQL Server.
This is a NodeMcu based internet of things project. And you do not need to use any IOT cloud Platform. I will show you how to build cloud like platform using a PHP and MySQL Server.

The dashboard of this project is very simple. I've added two gauge meters to display the real-time temperature and humidity data. You can also visualize all the latest data in tabular form. This project is just like having your own weather station dashboard and you can monitor your weather station readings, from anywhere in the world.

--------------------------------------------------------------------------------------------------------------------
Parts Buy Links (Affiliate Links)
--------------------------------------------------------------------------------------------------------------------

0:00 - Intro
0:46 - Advantages of your own IOT Cloud
1:45 - Project Code and Related Resources
2:07 - Recommended Hosting for Weather Station Froject
2:36 - Create a Subdamin
3:35 - Crate MySQL Database
4:32 - Uploading SQL file in Database
5:07 - Upload Project Files to Web Server
5:42 - Project Configuration
7:34 - Testing Project with Fake Data
8:07 - Wiring NodeMCU with DHT11
8:32 - NodeMCU Sketch (Programming)
9:04 - Arduino Serial Monitor Tesing
9:17 - End Screen

--------------------------------------------------------------------------------------------------------------------
Useful Video Links
--------------------------------------------------------------------------------------------------------------------
NodeMCU SIM800L GPS Tracker

Arduino IOT Cloud Home Automation With ESP32 and NodeMCU

--------------------------------------------------------------------------------------------------------------------
Social Media Links
--------------------------------------------------------------------------------------------------------------------
GitHub:
YouTube:

--------------------------------------------------------------------------------------------------------------------
Download Code
--------------------------------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------------------------------
Disclaimer
--------------------------------------------------------------------------------------------------------------------
Disclaimer: All videos are for educational purposes and use them wisely. Any video may have a slight mistake, please take decisions based on your research. This video is not forcing anything on you.

#NodeMCU #ESP8266 #ESP8266Projects
Рекомендации по теме
Комментарии
Автор

Very simple and understandable guide. Thanks!

ryusama
Автор

Bonjour, Tous d'abord un grand merci pour ce tuto très complet précis accompagné en plus de l'ensemble des elements.Pour ce qui cherche, ne cherchez plus vous avez trouvé. J'avoue ne pas être un grand spécialiste et grâce a ce tuto j'ai put appliquer l'ensemble du projet ( avec un serveur LAMP ) sur un Raspberry.
Merci !!!

Lovely-bxse
Автор

Thank you so much you helped me deeply

abdiqadirmohamednor
Автор

very nice and professional best product

AhmadMehraGohar
Автор

Hi Bro, How to change the maximum value in the gauge from 100 to any other higher value? Please help me.

TechTrendsShameer
Автор

Je me permets de revenir vers vous pour une question, peut on rajouter la fonction MQTT a ce projet?Merci de votre reponse

Lovely-bxse
Автор

How to display multiple sensors data on same page?

tariq
Автор

Arduino or NodeMCU will have a push switch attached. When I press in that switch, the location will go to our mobile

TechnicalidEas
Автор

very great project, how control devices, example relay and display temperature!!

kamalkamel
Автор

If you could explain each PHP file that'd be great since im a beginner. Thanks!

tamapra
Автор

Hello, What happens if you have multiple sensors on multiple esp866. How can I do that within mysql to store and display them?

DiyintheGhetto
Автор

Bonjour, J'ai essaye d'adapter votre code pour un capteur DS18B20 mais les valeurs ne change pas elle m'indique 24 et 77.

Lovely-bxse
Автор

monitor in showing http 200 code at nodemcu side, but data not available on php page.
I am using infinity web hosting

virenrao
Автор

Hi bro. How to change the color of the gauge in the output. I tried in the script, but the color goes to blank

TechTrendsShameer
Автор

Verry Nice ...
Can this be used with SIM800l ?

amirtelecom
Автор

how to fix bad requests. response code 400. the file sensordata.php cant find HTTP request, btw im using hostinger as webhost

omsvdfr
Автор

Thank you so much for this. I'm having issues with http.begin(client, SERVER_NAME); It gives error Compilation error: no matching function for call to 'HTTPClient::begin(WiFiClient&, const char*&)' I would appreciate if you can help

nonel
Автор

Nice, I tested your projects and it worked perfect but now I need to control few LED from web page, so what I have to do ?do I have to use mqtt broker?

annoorkhan
Автор

Hi bro
I did everything like u said. Database is getting data if we try to add fake data through post_data_test.php and nodemcu is also sending data successfully as it's showing http code 400 on serial monitor but it is not saving in database of the website if we check in database.
Can you tell me the reason?plz

SAURABHKUMAR-pyor
Автор

Thanks for sharing. I try already but fail to get the function. I am using personal website.. its so hard many creator using free..huhu. can you share video about own personal website. I try using randomnerdtutorial get the http code 300. Mind to help. Using the personal website. I did not know the host name.

syaduinotech