DHT22 / AM2302

Also known as: DHT22 · AM2302 · DHT11 · Temperature & humidity

The sensor in every starter kit and decade of tutorials — which is the only reason it still sells. Fine for 'roughly what's the temperature', but it's been outclassed at its own price.

As an Amazon Associate and an affiliate we may earn from qualifying purchases. Prices and availability are set by the retailer.

Declining pick: it still works, but better options exist at this price — see the "vs" note.

At a glance

⚑ flag an error
Measurestemperature, humidity
Accuracy±0.5 °C / ±2–5 %RH, 2 s minimum read interval
Interface1-Wire (proprietary single-wire protocol (not Dallas 1-Wire))
Supply3.3–5 V
Battery-viableYes (deep-sleep friendly)
ESPHomeNative ESPHome component — dht
Typical price$2-3 (street, varies)

Which one do I buy?

vs SHT4x/AHT20: they win on every axis. This entry exists so the comparison is one search away.

Clone check

Medium clone risk. Clone quality is poor and RH elements drift/saturate with age; there is no 'good' source.

Good for

Gotchas to know

Wiring it up

Simple wiring: one data GPIO (with a 4.7 kΩ pull-up — and multiple probes can share it) on any ESP32 dev board.

Resources

More temperature & humidity sensors

← All sensors