DHT11 temperature and humidity sensor
Low-cost temperature and humidity sensor on one data wire. Less accurate than the DHT22.
What is the DHT11 temperature and humidity sensor and what is it used for?
Low-cost temperature and humidity sensor on one data wire. Less accurate than the DHT22. Makers use it for first weather station, room monitors.
A resistive humidity element and an NTC thermistor are read by a small chip that sends 40 bits of data after a start pulse.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Temperature and relative humidity |
| Range | 0 to 50 °C, 20 to 90 % RH |
| Accuracy | ±2 °C, ±5 % RH |
| Interface | Single-wire digital (read at most once a second) |
| Supply voltage | 3.3 to 5.5 V |
Pinout
How to use it
Connect DATA to any digital pin and use the DHT sensor library with type DHT11. Read no more than once a second, and wait a second after power-up before the first reading.
Applications
Builds that use it
Alternatives
- DHT22 SensorBetter accuracy and range on the same wiring
- AHT20 temperature and humidity sensorMore accurate, faster, on I2C
Common questions
What is the DHT11 temperature and humidity sensor used for?
In maker projects: first weather station, room monitors.
How does the DHT11 temperature and humidity sensor work?
A resistive humidity element and an NTC thermistor are read by a small chip that sends 40 bits of data after a start pulse.
What voltage does the DHT11 temperature and humidity sensor need?
3.3 to 5.5 V.
How do I connect the DHT11 temperature and humidity sensor to an Arduino or ESP32?
Single-wire digital (read at most once a second). Pins: VCC (3.3 to 5.5 V), DATA (Single-wire data, needs a 4.7 to 10 kΩ pull-up (modules include it)), NC (Not connected (4-pin bare sensor only)), GND (Ground).
What can I use instead of the DHT11 temperature and humidity sensor?
DHT22 Sensor and AHT20 temperature and humidity sensor.
