# DHT22 Module (Temperature and Humidity)

**Type:** Product page · **SKU:** CE09581 · **Brand:** [Core Electronics](https://core-electronics.com.au/brands/core-electronics-australia)
**Page:** https://core-electronics.com.au/dht22-module-temperature-and-humidity.html ([markdown](https://core-electronics.com.au/dht22-module-temperature-and-humidity.html.md))

Accurately measure temperature and humidity with the DHT22 module. Ideal for DIY weather stations or automatic plant watering systems. Only one pin required for temperature and humidity readings.

## Pricing

- **Price:** $9.40 (inc GST) — $8.55 AUD, exc GST
- **Quantity discounts:** 5+ $8.37 (exc GST) · 15+ $8.12 (exc GST)

## Availability & dispatch

- In stock, ships same business day if ordered before 2PM (Australia/Sydney).
- We can dispatch 200 today; more stock is typically available with a 8–12 day lead time.

## Description

Perfect for your next weather station! This module includes all passives that you need to run the sensor directly on the module and only uses one pin to return the temperature and humidity!

This classic maker sensor is extremely well documented with many libraries for almost any microcontroller or single-board computer.

### Specifications

- Voltage Input: 3.3-5V
- Temperature Range: -40~80°C, with ±0.5°C error
- Humidity Range: 0-100% RH with ±2% RH error

### Examples

#### Raspberry Pi Pico - Micropython

```
import dht<br></br>import time<br></br>from machine import Pin

# Define pin for DHT22 sensor
DHT_PIN = 2

# Initialize DHT22 sensor object
dht22 = dht.DHT22(Pin(DHT_PIN))

# Loop to read temperature and humidity every second
while True:
    try:
        dht22.measure()
        temperature = dht22.temperature()
        humidity = dht22.humidity()
        print("Temperature: {:.1f} C".format(temperature))
        print("Humidity: {:.1f} %".format(humidity))
    except OSError as e:
        print("Failed to read DHT22 sensor:", e)

    time.sleep(1)
```

## Images

- [Product image 1](https://core-electronics.com.au/media/catalog/product/C/E/CE09581-1.jpg)
