Skip to main content

Humidity

DHT22

Single-wire temperature + humidity sensor — slower and pricier than a DHT11 but noticeably more accurate.

AM2302 · Aosong (Guangzhou)

🍌 Simulates in-browser
Voltage
3.3–6V
Package
Module
Pins
4
Interfaces
Digital
Lifecycle
Active
Footprint
Not verified

Overview

The DHT22 (the sensor inside is also badged AM2302) reports temperature and humidity over a single timed digital line — not true Dallas 1-Wire, just a similar idea with its own proprietary protocol, so it needs a bit-bang library like DHT.h rather than digitalRead(). It's much more accurate than its cheaper sibling the DHT11, but also much slower: the datasheet caps sampling at 0.5Hz, so polling faster than once every 2 seconds just returns stale data. Most breakout modules already include the required pull-up resistor on DATA.

Wiring tip: single-wire data pin — poll no faster than every 2s, use the DHT library not digitalRead

temperaturehumiditydigitalsingle-wire

Pins & wiring

01Pin map
4 positions

DHT22

Module

Physical pin order shown left to right.

PowerGroundGPIOOther

All pins

Selected pin

vcc

Power
Direction
Power
Full pin table
PinNameRoleDirectionNote
1PowerPower
2GPIOOpen-drainSingle-wire timed protocol — use a library like DHT.h, not digitalRead().
3OtherNo connectNo connection on the bare 4-pin DHT22/AM2302 sensor.
4GroundPassive

Wiring examples

5V host (Arduino Uno)

arduino-uno pinout →
DHT22 pinConnects toNote
VCC5V
DATAD2
GNDGND

You also need

  • Optional10 kΩ resistor between DATA and VCCOnly needed if wiring the bare 4-pin AM2302 sensor directly — 3-pin breakout modules already include this resistor.
DHT22 pinConnects toNote
VCC3V3
DATAGPIO4
GNDGND
  • Works fine down to 3.3V but with a bit less noise margin on the timed protocol — keep the DATA wire short.

Specifications

Electrical

Active Supply Current
1.5 mAsrc
Sleep Supply Current
50 µAsrc
Operating Voltage
3.3 – 6 Vsrc

Performance

Measures
temperature, humiditysrc
Range Min
-40°C / 0%RHsrc
Range Max
80°C / 100%RHsrc
Accuracy
±0.5°C / ±2%RHsrc
Resolution
0.1°C / 0.1%RHsrc
Sampling Rate
500 mHzsrc

Interface

Interface
digitalsrc

Physical

Package
Module
Length
Varies by vendor
Mounting
module

Thermal

Min Operating Temp
-40 °Csrc
Max Operating Temp
80 °Csrc

Footprint

No independently verified physical footprint is on file for this part yet.

Alternatives

Upgrades

Strictly better on the headline spec, but expect to touch firmware or wiring to actually use the difference.

I2C instead of a fussy timed protocol, adds barometric pressure, and samples much faster.

Compare with DHT22
  • Interface: digital (timed, single-wire)i2c
  • Measures: temperature, humiditytemperature, humidity, pressure

Budget options

Cheaper, with a stated tradeoff — read the reason before swapping.

Cheaper and more precise if you only need temperature — no humidity, but 1-wire and multi-drop capable.

Compare with DHT22
  • Measures: temperature, humiditytemperature
  • Accuracy: ±0.5°C±0.5°C (better resolution, 12-bit configurable)

Documents

Datasheets

Frequently asked questions

What voltage does the DHT22 run at?

The DHT22 runs at 3.3–6V, per the spec sheet below. Always double-check against the specific board you have — some breakouts add an onboard regulator that changes the usable input range.

How many pins does the DHT22 have?

The DHT22 has 4 pins, communicating over Digital. See the full pinout table in Pins & wiring for each pin's role.

Can I simulate the DHT22 before ordering hardware?

Yes — the DHT22 has a live in-browser simulation model, so you can exercise the circuit before ordering any hardware.

Where is the DHT22 datasheet?

Linked in the Documents section on this page, and cited on every spec that came from it.

Build it, do not just look it up

Describe your circuit in one sentence and Banana Board wires it to these exact pins, validates it, and lays out a fab-ready PCB.

Start building free