User guide for the AZ-Delivery DHT22 (AM2302) temperature and humidity sensor, with wiring and Arduino and Raspberry Pi examples.
This manual explains how to use and set up the AZ-Delivery DHT22 temperature module, a relative humidity and temperature sensor that outputs a digital signal. It describes the capacitive humidity sensor and NTC thermistor inside the case, the technical specifications, and the pin connections.
The guide then shows how to connect the module to an Arduino Uno and a Raspberry Pi, including example sketches and scripts, and points readers to AZ-Delivery for application examples and installation guides.
| Operating voltage | 3 to 5V |
|---|---|
| Maximum operating current | 2.5mA |
| Humidity range | 0% - 100% |
| Temperature range | -40°C - 125°C |
| Sampling rate | 0.5Hz (reading every 2s) |
| Dimensions | 15x38x9mm |
The DHT22 is also named AM2302.
A 5V supply is recommended, and with 5V the cable can connect the sensor and microcontroller for as long as 20 meters. With 3.3V, the cable length shall not be greater than one meter.
The SimpleDHT library is recommended; the example sketch is DHT22Default, and the serial monitor baud rate should be set to 115200.
The Adafruit_DHT library is installed with pip, and the script reads the sensor on GPIO12 with a 2.5 second sleep interval.