DHT11 Sensor With Wi-Fi Part 4
by Aced Inventor in Circuits > Arduino
851 Views, 6 Favorites, 0 Comments
DHT11 Sensor With Wi-Fi Part 4
In this project, we will be making a "DHT11 Sensor with Wi-Fi." In part 1, we display the temperature in Celsius and Fahrenheit with a thermometer animation. In part 2, we display the temperature in Celsius and Fahrenheit, but we remove the thermometer animation and add the humidity value. In part 3, we add Bluetooth to our project and make an app in MIT app inventor to check the temperature over Bluetooth. In this part, we will add Wi-Fi to our project to monitor the temperature from anywhere. We write some code so that the Arduino can receive the temperature and humidity from the sensor. Once we have the temperature, we convert it to Fahrenheit ((Celsius * 1.8) + 32). We then send the data over Wi-Fi to our Blynk application.
This project can still be improved.
Supplies
The components required to make this project are:
DHT11 Wiring
Connect the DHT11 as following:
NodeMCU >> DHT11
GND >> GND
3.3V >> VCC
D2 >> Signal
Making the App
For the complete directions on how to make the app, you can watch my video.
Name >> Connection >> Label >> Value >> Reading Rate
Temperature Guage >> V4 >> F° >> 0 - 122 >> Push
Temperature Label Celsius >> V1 >> C° >> 0 - 50 >> Push
Temperature Label Fahrenheit >> V2 >> F° >> 0 -122 >> Push
Humidity Guage >> V5 >> % >> 20 - 95 >> Push
Humidity Label >> V3 >> % >> 20 - 95 >> Push
Button >> D0 >> NA >> 1 - 0 >> Switch
Uploading the Program
Open the program on Arduino IDE. Once it is open, compile the sketch to see if it is clear of error and upload it. Make sure you have all the libraries download before you upload the program. After uploading the program, open the Blynk application. On the Blynk application, you should see the temperature and humidity.
For more information about this, please visit my Patreon:
https://www.patreon.com/acedinventor
Testing the Project
To test if the project is working properly, plug the NodeMCU into a power source. The onboard LED should turn on. After that, open the Blynk application and run your project. On the bottom, it should say connected. After a bit, it should update the temperature in Celsius, Fahrenheit, and the humidity. If you press the button, the LED should turn off; If you press it again, the LED should turn on. You can also test the sensor by putting a piece of ice on it and see if the temperate is dropping. The values on the app should be updating live.
If there is still something you don't understand, you can comment down below.