A DHT22 (also sold as the AM2302) temperature and humidity sensor on a small red breakout board, with the 5.1kΩ pull-up resistor and a 3-pin header already fitted. It sends calibrated digital readings on one data wire and runs from 3.3V or 5V, so it connects straight to an Arduino, ESP32 or Raspberry Pi with three jumper wires.
Specifications
Datasheets
What's in the box
Header soldered and pull-up fitted. Jumper wires are not included.
Great for
Wiring & getting started
- Check the pin labels
The board is marked DAT, VCC and GND beside the header. DAT is on the end, not in the middle, so wire by the labels rather than by habit.
- Wire it up
DAT to any digital pin, VCC to your board's 3.3V or 5V pin, and GND to GND. The pull-up is already on the board, so no extra resistor is needed.
- Install the library
On Arduino, install the Adafruit DHT sensor library and set the type to DHT22, not DHT11. On ESPHome, use the dht platform with model DHT22.
- Read it every 2 seconds or slower
A reading of nan usually means the sketch asked too soon or the wrong sensor type is set. The first reading after power-up can also fail, so skip it.
