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| Measures | temperature, humidity |
|---|---|
| Accuracy | ±0.5 °C / ±2–5 %RH, 2 s minimum read interval |
| Interface | 1-Wire (proprietary single-wire protocol (not Dallas 1-Wire)) |
| Supply | 3.3–5 V |
| Battery-viable | Yes (deep-sleep friendly) |
| ESPHome | Native ESPHome component — dht |
| Typical price | $2-3 (street, varies) |
Compare all sensor modules in one table →
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
Good for
Gotchas to know
- Don't buy in 2026: an SHT41 costs the same, reads 10x faster over I2C, and is far more accurate.
- Slow (2 s), bit-banged protocol that hates long wires, humidity element drifts high over time.
- DHT11 (the blue one) is strictly worse — avoid entirely.
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.