Components / Sensors / DHT11 temperature and humidity sensor

DHT11 temperature and humidity sensor

Low-cost temperature and humidity sensor on one data wire. Less accurate than the DHT22.

MeasuresTemperature and relative humidity
Range0 to 50 °C, 20 to 90 % RH
Accuracy±2 °C, ±5 % RH
InterfaceSingle-wire digital (read at most once a second)
SensorsReviewedMPN DHT11Used in 2 projects
DHT11
In short

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.

How it works

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 specValue
MeasuresTemperature and relative humidity
Range0 to 50 °C, 20 to 90 % RH
Accuracy±2 °C, ±5 % RH
InterfaceSingle-wire digital (read at most once a second)
Supply voltage3.3 to 5.5 V

Pinout

VCC3.3 to 5.5 V
DATASingle-wire data, needs a 4.7 to 10 kΩ pull-up (modules include it)
NCNot connected (4-pin bare sensor only)
GNDGround

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

Alternatives

Buy at

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.