DHT20 temperature and humidity sensor at a three-quarter angle, showing the 12-window vented grille, moulded ASAIR lettering and four straight pins

DHT20 Temperature & Humidity Sensor - I2C, 3.3V or 5V, 4-Pin

$4.49 NZD
Save 6% at 3+
Skip to product information
SKU: NZE-DHT20-I2C

DHT20 Temperature & Humidity Sensor - I2C, 3.3V or 5V, 4-Pin

$4.49 NZD
Availability:
Order before 7:30am for same-day dispatch Dispatch 7 days a week, excluding public holidays

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

No GST added (we're not GST registered). Shipping from $5.99 urban / $9.99 rural, or free pick-up in Te Awamutu.

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
Add $66.00 for Free Urban delivery ($88.00 for Rural)
Urban $66 Rural $88

The DHT20 is a calibrated temperature and humidity sensor in the familiar 4-pin DHT housing, with a digital I2C output instead of the DHT11's single-wire signal. It runs on 3.3V or 5V, sits at I2C address 0x38 and reads with standard Arduino, ESP32, ESPHome and Raspberry Pi libraries. If you want a single data wire instead, see our DHT22 / AM2302 module with the pull-up fitted, or the low-cost bare DHT11.

Specifications

SensorDHT20, AHT20-class chip, factory calibrated
InterfaceI2C, fixed address 0x38, up to 400 kHz
Supply2.2 to 5.5V, works on 3.3V and 5V boards
Humidity0 to 100% RH, ±3% RH typical
Temperature-40 to 80°C, ±0.5°C typical
Pinout1 VDD, 2 SDA, 3 GND, 4 SCL (grille towards you, pins down)
Pull-ups4.7k on SDA and SCL if your bus has none (not included)
Size12.6 x 16.1 x 5.8 mm body, 7.2 mm pins at 2.54 mm pitch
Reading rateOne reading every 2 seconds or slower

Datasheets

What's in the box

1×
DHT20 temperature and humidity sensor

Bare 4-pin sensor in an anti-static bag. Pull-up resistors and wires are not included.

Great for

Room temperature and humidity in Home Assistant via ESPHome
Upgrading a DHT11 project to calibrated I2C readings
Checking bathroom or wardrobe humidity before mould sets in
Greenhouse and seed-raising humidity logging
Showing temperature and humidity on an I2C OLED
Battery-powered loggers that sleep between readings

Wiring & getting started

  1. Find the pins

    Hold the sensor with the vented grille towards you and the pins pointing down. From left to right the pins are 1 VDD, 2 SDA, 3 GND and 4 SCL. SDA and SCL are not side by side, so check them twice.

  2. Power it from your board's logic voltage

    On an Arduino Uno or Nano connect VDD to 5V, SDA to A4 and SCL to A5. On an ESP32 connect VDD to 3.3V, SDA to GPIO21 and SCL to GPIO22. GND goes to GND on both.

  3. Add pull-ups if the bus needs them

    If nothing else on the I2C bus has pull-up resistors, fit 4.7k from SDA to VDD and from SCL to VDD. A 100nF capacitor across VDD and GND, close to the sensor, keeps the supply clean.

  4. Read it

    In the Arduino IDE install the DHT20 library by Rob Tillaart, or Adafruit AHTX0, and open its example. In ESPHome use the aht10 platform with variant AHT20. Wait at least 2 seconds between readings.

Note: The DHT20 uses I2C, so it is not a drop-in swap for a DHT11 or DHT22 in existing code or wiring. Hand solder only, briefly, and give the sensor a day or two in normal room air afterwards before trusting the humidity reading.

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 a drop-in replacement for a DHT11 or DHT22?
No. It fits the same kind of 4-pin footprint, but it talks I2C on two wires (SDA and SCL) instead of the DHT11's single data wire. Rewire pin 2 to SDA and pin 4 to SCL and switch to a DHT20 or AHT20 library.
Does it work with a 3.3V ESP32 and a 5V Arduino?
Yes, it runs from 2.2 to 5.5V. Power it from the same voltage as your board's logic: 3.3V on an ESP32 or Raspberry Pi, 5V on an Arduino Uno or Nano. Pull SDA and SCL up to that same voltage.
Do I need pull-up resistors?
Only if nothing else on the I2C bus provides them. Many I2C modules, such as OLED displays and sensor boards, already have pull-ups fitted. If the DHT20 is the only device, fit 4.7k from SDA to VDD and from SCL to VDD. They are not included.
Which library should I use?
In the Arduino IDE, the DHT20 library by Rob Tillaart or Adafruit AHTX0 both work. In ESPHome, use the aht10 platform with variant: AHT20. On a Raspberry Pi it shows up at 0x38 in i2cdetect and works with AHT20 Python drivers.
Can I connect several DHT20s to one board?
Not on the same I2C bus, because the address is fixed at 0x38. Use a second I2C bus (an ESP32 has two) or an I2C multiplexer to read more than one.
How often can I take a reading?
Every 2 seconds or slower. Each measurement takes about 80 ms, and reading much faster than that warms the sensor slightly, which pushes temperature up and humidity down.
Why does the humidity read wrong after I soldered it?
Heat dries the sensing layer. Leave it in normal room air for a day or two, or in a humid spot above 75% RH for 12 hours, and it recovers. Solder each pin quickly at no more than 300°C.
Can I use it outdoors?
In a sheltered, ventilated spot, yes. It is not sealed, so keep it out of rain, condensation and direct sun. A louvred radiation shield or the underside of an eave works well.
DHT20 or DHT22, which should I buy?
Choose the DHT20 for an I2C bus, low sleep current and a lower price. Choose our DHT22 / AM2302 module if you want a single data wire with the pull-up already on the board and slightly tighter humidity accuracy, ±2% RH.

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. In Te Awamutu and Kihikihi you can choose local delivery at checkout: same day if you order before 8am, otherwise next day.

  • 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