DHT22 / AM2302 temperature and humidity sensor module on a red breakout PCB with 3-pin header

DHT22 / AM2302 Temperature & Humidity Sensor Module - 0-100% RH, Pull-Up Fitted

$5.49 NZD
Save 10% at 3+
Skip to product information
SKU: DHT22-AM2302-MODULE

DHT22 / AM2302 Temperature & Humidity Sensor Module - 0-100% RH, Pull-Up Fitted

$5.49 NZD
Availability:
Dispatch: Within 24 hours 7-day dispatch, excluding public holidays

NZ Post: 1-2 days urban · 2-4 days rural

Shipping from $5.99 urban / $9.99 rural.

Buy more, pay less Prices shown are per unit. Add enough of this item and the lower rate applies on its own at checkout. There is no code to enter and you do not need to buy a pack. Choosing a tier here just sets the quantity for you. Larger quantities go out in the same bag, so packing, handling and postage cost us less per unit. We pass that saving straight on to you, so you can buy more for less.

Easy 30-day returns · 12-month warranty

Add these too
Free Urban delivery on orders over $66
Urban $66 Rural $88

The DHT22 measures temperature and humidity and hands back a calibrated digital reading over a single wire, so there is no ADC, no reference voltage and no calibration curve to work out at your end. It covers 0 to 100% RH and -40 to 80°C, holding ±2% RH through the 20 to 90% band and ±0.5°C on temperature. This one arrives on a red breakout with the 5.1k pull-up already fitted and the 3-pin header soldered on, so it goes onto a breadboard or an ESP32 with three jumper wires and nothing else.

  • Humidity 0 to 100% RH, ±2% RH through 20 to 90%
  • Temperature -40 to 80°C, ±0.5°C
  • Resolution 0.1% RH and 0.1°C, 16 bits each
  • Calibrated digital output on one wire, no ADC needed
  • 5.1k pull-up resistor already fitted on the board
  • Runs on 3.3V or 5V logic, 3.3 to 5.5V DC in
  • 1.5mA while reading, 50µA sitting idle
  • Cable runs of up to 20 metres
  • 39.7 x 23.4mm with two 3mm mounting holes
  • Native ESPHome support, Adafruit DHT library on Arduino

Specifications

ModelDHT22, also sold as the AM2302
Sensing elementCapacitive humidity sensor and a thermistor, calibrated at the factory
OutputCalibrated digital signal on a single-wire bus, 40-bit frame with checksum
Humidity range0 to 100% RH
Humidity accuracy±2% RH through 20 to 90% RH, up to ±5% RH outside that band
Temperature range-40°C to 80°C
Temperature accuracy±0.5°C
Resolution0.1% RH and 0.1°C, 16 bits each
Sampling rateOne reading every 2 seconds, roughly 0.5Hz
Operating voltage3.3 to 5.5V DC
Current draw1.5mA while measuring, 50µA idle
Pull-up resistor5.1k, fitted onboard
PinsDAT, VCC, GND, top to bottom as marked on the board
Cable lengthUp to 20 metres with decent quality wire
PCB size39.7 x 23.4 x 8.5mm
Mounting holesTwo 3mm holes, clearance for M3
Weight4g
ConnectorPre-soldered 3-pin 2.54mm header
SKUDHT22-AM2302-MODULE
Full technical datasheet, wiring, and an Arduino example sketch PDF

What's in the box

DHT22 / AM2302 module on a breakout PCB

Header already soldered and the pull-up already fitted, so there is nothing to add before you wire it up. Three jumper wires and a board and you are reading.

Great for

ESPHome and Home Assistant sensor nodes
Weather stations and outdoor logging
Greenhouse and grow tent monitoring
Server rack and workshop temperature alarms
HVAC and ventilation control
Curing, drying and filament storage boxes

Getting started: the header reads DAT, VCC, GND top to bottom on the silkscreen, so check the board rather than wiring by habit. DAT goes to any digital GPIO, VCC to 3.3V or 5V, GND to ground. 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. Leave at least 2 seconds between reads or the call comes back as nan.

Good to know: ±2% RH holds through the 20 to 90% band and widens to about ±5% RH at the very top and bottom of the range, which is normal for a capacitive sensor. Keep it out of direct sun and away from anything warm, since a heat source next to the sensor skews humidity as well as temperature. Do not use it where condensation forms on the housing, and do not build it into safety or emergency stop equipment.

Related guide DHT22 vs DS18B20 vs BMP280: Which Sensor Should You Choose?Choose a sensor for air temperature, humidity, remote temperature or pressure. Compare DHT22, DS18B20 and BMP280, with practical wiring and placement checks.

Frequently Asked Questions

Answers to the questions buyers ask most.

Is it really 0 to 100% RH? A lot of listings say 20 to 90%.
0 to 100% RH is correct, and it comes straight from Aosong, who make the sensor. Their AM2302 datasheet lists the operating range as humidity 0 to 100% RH and temperature -40 to 80 degrees C. The 20 to 90% figure you see everywhere is the DHT11 spec, copied into DHT22 listings by suppliers who reuse the same parameter block. What 20 to 90% does describe correctly is the band where the sensor holds its rated plus or minus 2% RH. Outside it the sensor still reads, just with wider error, up to about plus or minus 5% RH.
What is the difference between the DHT22 and the DHT11?
Range and accuracy. The DHT11 covers 20 to 80% RH at plus or minus 5% and 0 to 50 degrees C at plus or minus 2 degrees, with 1 degree resolution. The DHT22 covers the full 0 to 100% RH at plus or minus 2% and -40 to 80 degrees C at plus or minus 0.5 degrees, with 0.1 resolution on both. They talk the same single-wire protocol and use the same three pins, so swapping one for the other is usually a one line change in code. The DHT11 is fine for a room comfort readout. Anything outdoors, in a greenhouse, or anywhere below freezing wants the DHT22.
Do I need to add a pull-up resistor?
No. There is a 5.1k pull-up already fitted on this breakout, marked 512 on the board next to the header. That is the value Aosong recommends for runs under 20 metres. You only need to think about it if you are chaining several sensors on long cable, where the combined pull-ups can get too strong.
Which way round do the pins go?
Read the silkscreen, do not assume. The header is marked DAT, VCC, GND from the top of the board down, so the data pin is the outermost one, not the middle. Plenty of three pin sensors put power in the middle and this one does not. DAT goes to any digital GPIO, VCC to 3.3V or 5V, GND to ground.
Why do my readings come back as nan or just fail?
Almost always the read interval. The DHT22 samples at roughly 0.5Hz, so it needs at least 2 seconds between reads and will return a failed or stale result if you ask sooner. Put a delay of 2000 or more in your loop before the read. If the timing is right and it still fails, check that you selected DHT22 rather than DHT11 in the library, and that the data wire is on the pin you named in code. A first reading immediately after power-up can also fail while the sensor settles, which is why most examples throw the first one away.
Does it work with ESPHome and Home Assistant?
Yes, natively. ESPHome has a built in dht platform, so it is a few lines of YAML with model set to DHT22 and the pin you wired DAT to. The temperature and humidity turn up in Home Assistant as two sensor entities with no custom code. It is one of the most common ESP32 and ESP8266 sensor builds there is.
Can I run it at 3.3V on an ESP32?
Yes. The sensor runs anywhere from 3.3 to 5.5V and the data line follows whatever you feed VCC, so on a 3.3V board the signal is 3.3V logic and needs no level shifting. On a 5V Arduino it is 5V logic. Either works, just do not power it from 5V and read it on a 3.3V pin.
How far can I run the cable?
Up to about 20 metres with the fitted 5.1k pull-up and decent quality wire. Aosong quote longer figures in their marketing, but 20 metres is the practical limit for this pull-up value. Past a couple of metres use shielded or twisted cable and keep it away from mains runs and motor leads, since the protocol is timing sensitive and picks up noise.
Can I put it outside?
In a sheltered spot, yes, and it is a common weather station sensor. The housing is not sealed though, so it needs to be out of rain and direct sun. Direct sun is the one people miss: it heats the plastic and skews humidity as well as temperature. A vented radiation shield or the underside of an eave works well. Do not let condensation form on it, and do not submerge or wash it.
How accurate is it in practice?
Plus or minus 2% RH and plus or minus 0.5 degrees C is the factory spec, holding through 20 to 90% RH. Real world, expect it to sit within a percent or two of a reference meter through the middle of the range and drift wider near saturation or very dry air. Long term Aosong rate the drift at about 0.5% RH a year. That is well inside what a greenhouse, grow tent, server room or home automation setup needs.

Have a Question About This Product?

Send it through and we will get back to you by email.

Why Buy from NZN

Useful parts, fair prices and someone local to help.

I'm Lukas, an engineering student and maker based in Te Awamutu. NZN grew out of a CNC build that dragged on for months because every missing cable, bolt or electronic part meant another overseas order. I started the shop so Kiwi makers can spend more time building and less time waiting for the next parcel.

  • Stocked here in New Zealand

    Orders are picked and packed in Te Awamutu and dispatched within 24 hours every day, excluding public holidays. NZ Post target delivery is 1-2 days urban and 2-4 days rural.

  • Fair prices, clearly shown

    Prices are kept competitive and quantity discounts are shown upfront. Free delivery starts at $66 for urban addresses and $88 for rural addresses.

  • 30-day returns and 12-month warranty

    Get in touch if something is not right and we will help sort it.

  • Practical product support

    Ask a product question and get help from a real person in New Zealand who knows the range.

You may also like