top of page
Search
Writer's pictureWatchIT Group

Part 3 , project 1 : Send Temperature & humidity sensor values to ThingSpeak with DHT11 sensor.

In the previous project, you have seen how to connect ESP8266 to ThingSpeak. After that initial setup, you can proceed with integrating various sensors with ESP8266 and monitoring the data on ThingSpeak API. So, in this project, you will see how to interface DHT11 Humidity Sensor with ESP8266 and ThingSpeak and monitor the data.


DHT11 is a low-cost Humidity and Temperature Sensor. Since it has both the temperature and humidity sensors, the DHT11 Sensor is sufficient to implement your first IoT Weather Monitoring System.


To get started to DHT11 interfaced with ESP8266 refer to the previous tutorial "Part 2 , Project 1 : DHT11 & ESP8266 NodeMCU Web Server to display Temperature & humidity".


Interfacing DHT11 Humidity Sensor with ESP8266 and ThingSpeak.


I’ll interface the DHT11 Sensor with ESP8266 through one of the GPIO Pins. All the calculations regarding the Humidity and Temperature will be performed in the ESP8266 Module.

After measuring the Temperature and Humidity, the results will be posted on the ThingSpeak API and can be seen as a graph


Circuit diagram:


The circuit diagram for Interfacing DHT11 Humidity Sensor with ESP8266 Nodemcu on the Menya IoT kit is shown in the image below

Circuit DHT11 Temperature Humidity Sensor with ESP8266 nodemcu.


Code


The code for connecting DHT11 Humidity Sensor with ESP8266 and ThingSpeak API is given below. You have to make some changes in the code i.e add your WiFi Network’s SSID and Password at appropriate places.

Also, you need to note down your Write API Key from ThingSpeak Channel and paste it in the code.

In the previous project “Part 3 Lesson 2 : Getting started with ThingSpeak and visualize your data anywhere in the world”, I have shown you how to create a channel in ThingSpeak and add fields for that channel. So, if you are unfamiliar with that information, please refer to that Tutorial.


Sketch

download the code and make necessary modification , like setting the wifi SSID and password .




Final Dashboard

Add gauges to have more nice looking dashboard, to achieve it add "Widgets " you will find a button with that specification above the chart line graph .


Conclusion and Applications

  • In this simple project, I have shown you how to interface DHT11 Humidity Sensor with ESP8266 and ThingSpeak API.

  • You can monitor the DHT11 Sensor Data from anywhere in the World just by sitting in front of a computer.  

  • This project could be your first implementation towards a bigger and better Weather Station with many other sensors.  


Feel free to ask any question in the comment section!.


284 views2 comments

2件のコメント


evekumutoni
2020年6月26日

worked

いいね!

Ismael Siriyamungu
Ismael Siriyamungu
2020年6月21日

Running perfect !!

いいね!
Post: Blog2_Post
bottom of page