How to Upload DHT11 Temperature and Humidity Sensor Using ESP8266 to Thingspeak

Hello all.. This is Anto... This tutorial is for the beginners who want to the knowledge to update the parameters value to the thinkspeak server. You can use this project in home, poultry farming, artificial egg hatching machine ect..

wlhat you must need is an internet connection to get regular update. is a data analytic web service used for analysis. you can analysis your data according to the date and time.

You can also make monthly or yearly charts for performance analysis...


I suggest you to buy the components from Because of the quality products as well as cheap rate with world wide shipping.

Things needed:-

Arduino UNO - 1 x 1

DHT11 - 1 x 1

LCD 16x2 - 1 x 1

LCD break out board - 1 x 1

ESP8266-01 - 1 x 1

Jumper wires - few

+12v power supply - 1 x 1

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Step 1: Create an Account in

First of all, create a new account by login with your email id. verify your email id through an email from the thingspeak.

Then click channel, so that you can see new channel menu in the screen. click the new channel

Step 2: Step 2: Enter the Titles and Then Save the Channel

Enter the titles corresponding to your application. click the check box to enable the parameters to enter in the channel. In my case i clicked two checkbox and entered Temp and Humi. You can enter maximum of 8 parameters in the thingspeak.

Then click save channel...

Step 3: Step 3: Click Sharing Menu to Share Your Channel As Public in Web.

Click the share menu to public. so that any one can view your data all around the world.

Step 4: Step 4: Click the API Menu for Getting the Unique API Key

This step is more important to transfer the parameters on the thingspeak server. if you want to write the sensor parameters to the thing thingspeak server, you have to copy the write API key. if you want to read the parameters from thingspeak, you have to copy the read a API key. In our case, we have to copy the Write API key to update the value to the server and paste the api key to the arduino code.

Step 5: Step 5: Download My Code and Open It in the Arduino IDE

now paste the write api key in the code where i mentioned with the arrow.

Change the wifi credentials to your WIFI SSID and WIFI password.

this is more important.

Step 6: Step 6: Create a Breakout Board According to the Circuit for Placing the ESP Module

Note : dont connect GPIO0 to ground according to the circuit. GPIO0 has been grounded only to download the frimware.

I highly suggest you to buy a ESP8266-01 breakout board from the market. in my case, i made a own.

Step 7: Step 7: Connect the Hardware As Per the Circuit Diagram

Connect the TX pin of the ESP module (refer to find the TX and RX pin in the Breakout board from the previous image) to the 2 pin of the arduino.

Connect RX pin of the ESP module to the 3rd pin of the arduino.

connect carefully by connecting 3.3v to vcc of the ESP module

Data pin of DHT11 to the A1 of the arduino. you can change to any pin and make modification on the program.

For LCD to arduino

RS---> D13






Step 8: Step 8: Upload the Program to the Arduino Board and Open Serial Monitor

Upload the code to the arduino. then open the serial monitor in the arduino IDE. check weather the response will be OK. check weather your ESP module connected to your WIFI device.

Step 9: Step 9: Verify the Output in the Thingspeak Public Channel.

finally you can check the parameters of temperature and humidity in the thingspeak channel and the LCD.

You have done....

Be the First to Share


    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest