DHT22 humidity and temperature sensor pinout
DHT22 humidity and temperature sensor (AM2302), DHT22 (AM2302), 3.3 V logic, 15.3×30.6 mm, 4 pins
verified20.10.2026
View of the grille, tab with a hole at the top, pins down: VDD, DATA, NULL, GND from left to right.
Download PNG- Chip
- DHT22 (AM2302)
- Logic
- 3.3 V
- Power
- VDD (pin 1) 3.3-6 V
Important
- 4.7-10 kΩ pull-up from DATA to VDD (Adafruit uses 10 kΩ). 100 nF ceramic between VDD and GND per Aosong.
- Poll no more than once every 2 seconds. The sensor doesn't respond during the first second after power-up.
- Supply: the specification table says 3.3-6 V, the AM2302 description recommends 3.3-5.5 V.
- With an ESP32: VDD to 3V3, DATA to an output-capable GPIO (not 34-39), pull-up to 3V3. Libraries: DHT sensor library (Adafruit) or DHTesp, type DHT22.
- Difference from the DHT11: more accurate (±2 %RH, ±0.5 °C), wider range (-40...80 °C), different data format: select type DHT22 in the library.
- 1-1.5 mA while measuring, 40-50 µA in standby.
Revisions and clones
- AM2302 in the large wired package: red VDD, black GND, yellow DATA (Aosong).
- DHT22 on a breakout with three pins and a pull-up: module dht22-module.
All pins
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| VDD | pin 1 | 5 V | power input | verifiedLabelled on other revisions as: VCC, +, 1 |
| DATA | pin 2 | Data: Aosong single-wire bus (not compatible with Dallas 1-Wire) | verifiedA pull-up to VDD is required: the bare sensor doesn't have one.Labelled on other revisions as: SDA, OUT, 2 | |
| NULL | pin 3 | not connected | verifiedLabelled on other revisions as: NC, 3 | |
| GND | pin 4 | Ground | verifiedLabelled on other revisions as: 4 |
Sources
Every pin is verified against the manufacturer's documents.
- Aosong DHT22 Digital-output relative humidity & temperature sensor (SparkFun copy)datasheet, checked 20.10.2026pins 1 VDD, 2 DATA, 3 NULL, 4 GND left to right; supply 3.3–6 V; current 1–1.5 mA while measuring, 40–50 µA standby; poll period over 2 s; package 15.1×25.1×7.7 mm with a Ø3 tab, grille 20 mm; 0–100 %RH ±2 %, -40...80 °C ±0.5 °C
- Aosong AM2302/DHT22 Digital relative humidity & temperature sensor (Adafruit copy)datasheet, checked 20.10.2026the specifications give a 3.3-5.5 V supply, the table up to 6 V; 100 nF capacitor between VDD and GND; AM2302 in the wired package: red power, black GND, yellow data; the Aosong bus is not compatible with Dallas 1-Wire
- Adafruit Learn: DHT11, DHT22 and AM2302 Sensors, Connecting to a DHTxx Sensoruser guide, checked 20.10.202610 kΩ pull-up between VCC and the data pin; pin 3 is not used
Size: body 15.1×25.1 mm including the mounting tab per Aosong, the 8.5 mm pins are drawn shortened, 2.54 pitch (approximate).
FAQ
- What supply voltage does the DHT22 humidity and temperature sensor need?
- VDD (pin 1): 3.3-6 V. 3.3 V logic.



