
Hello guys, Welcome back to another article from SriTu Hobby. Today we are going to talk about the DHT11 sensor. Let’s first see what is a DHT11 sensor. Primarily we can measure both temperature and humidity through this. You can use this sensor for home ecosystems, farm, and garden monitoring systems.
Let us now see how this sensor works.
How to measure Temperature
The temperature is measured by a temperature gauge called NTC embedded in the DHT11 sensor.
How to measure Humidity
The DHT 11 sensor incorporates a substrate containing surface moisture and electrons to measure the humidity level. When water vapor is absorbed from the substrate, ions are released from the substrate, increasing the conductivity between the electrodes. The difference in resistance between the two electrodes is proportional to the relative humidity. Higher relative humidity reduces the resistance between the electrodes and lowers relative humidity increases the resistance between the electrodes. The amount of water vapor can be measured by the electrical resistance between the two electrodes.
DHT 11 sensor details
- Humidity readings with 5% accuracy.
- Temperature readings ±2°C accuracy.
- Body size 15.5mm x 12mm x 5.5mm.
- 2.5mA max current use.
- Low cost.


- Arduino UNO board x 1 — Amazon / Our Store
- DHT 11 sensor x 1 — Amazon / Banggood /// DHT11 sensor module — Amazon / Banggood
- 10k Resistor x 1 — Amazon / Banggood
- Breadboard x 1 — Amazon / Our Store
- Jumper wires — Amazon / Our Store
Step 1
First, identify these components.
Arduino UNO board.

DHT11 sensor.

10k Resistor

Breadboard.

Jumper wires.

Step 2

Step 3
/*how to work DHT11 sensor.
Serial monitor readings.
created by the SriTu Tech team.
Read the code below and use it for any of your creation
*/
#include <DHT.h>
DHT value(2,DHT11);
void setup() {
Serial.begin(9600);
value.begin();
}
void loop() {
double h = value.readHumidity();//get humidity
double t = value.readTemperature();//get tempereture
Serial.print("Humidity = ");
Serial.print(h);//print humidity
Serial.print("t");//tab space
Serial.print("Temperature = ");
Serial.println(t);//print temperature
delay(1000);//delay
}
After, this sensor and Serial monitor are begun in the VOID setup.
Next, read the temperature and humidity values of the Void loop and include those values into two double variables. Finally, the values are displayed on the serial monitor.
Step 4



How does work DHT 11 sensor with the Arduino