
- Stock:
- Model: T181.DHT22
DHT22 (AM2302) Digital Temperature Humidity Sensor Module🌡️
The DHT22 (AM2302) is a high-accuracy digital temperature and humidity sensor designed for precise environmental monitoring. As an advanced successor to the DHT11, it offers broader measurement ranges, higher accuracy, and a digital single-wire interface ideal for Arduino, Raspberry Pi, and other microcontroller-based projects.
🔎 Overview
The DHT22 integrates a capacitive humidity sensor and an NTC thermistor, converting measurements into a calibrated digital signal output on its data pin. Its low power consumption and wide voltage range make it suitable for battery-powered electronics modules and IoT applications.
✨ Key Features
- Temperature Range: -40 to +80°C (accuracy ±0.5°C)
- Humidity Range: 0 to 100% RH (accuracy ±2–5% RH)
- Resolution: 0.1 (°C and %RH)
- Power Supply: 3.3V to 6V
- Low Power Consumption: suitable for battery-powered systems
- Digital Output: single-wire communication protocol
- Response Time: typically less than 2 seconds
- Long-Term Stability: reliable for continuous monitoring

📌 Pin Configuration
The DHT22 sensor usually presents four pins; three are commonly used:
- VCC: Power input (3.3V to 6V)
- GND: Ground
- DATA: Digital signal output (single-wire)
- NC: Not connected (optional)
🧩 Typical Applications
- Weather Stations: ambient temperature and humidity logging
- HVAC Systems: monitoring heating, ventilation, and air conditioning
- Home Automation: indoor environment sensing and control
- Agriculture/Greenhouses: climate monitoring and optimization
- Industrial Monitoring: warehouses, workshops, and factory floors
🔌 Wiring Guide
Interfacing the DHT22 with Arduino or other microcontrollers is straightforward:
- Connect VCC of the DHT22 to the 5V (or 3.3V) pin of the Arduino.
- Connect GND to GND.
- Connect DATA to a digital I/O pin (e.g., D2 on Arduino).
- Add a 4.7 kΩ to 10 kΩ pull-up resistor between VCC and DATA.
Notes for Raspberry Pi and 3.3V logic systems:
- Power the sensor from 3.3V on the Pi; the data line already operates at logic level.
- Use the same pull-up resistor between 3.3V and DATA.
💻 Example Code (Arduino)
Install the Adafruit DHT library via the Arduino IDE Library Manager, then use the example below:
#include "DHT.h"// Define the sensor type and the pin it's connected to #define DHTTYPE DHT22 // DHT 22 (AM2302) #define DHTPIN 2 // Digital pin 2DHT dht(DHTPIN, DHTTYPE);void setup() { Serial.begin(9600); Serial.println("DHT22 (AM2302) test!"); dht.begin(); }void loop() { // Wait a few seconds between measurements (DHT22 min sampling period ~2s) delay(2000); // Read temperature and humidity float humidity = dht.readHumidity(); float temperature = dht.readTemperature(); // default is Celsius // Validate readings if (isnan(humidity) || isnan(temperature)) { Serial.println("Failed to read from DHT sensor!"); return; } // Print results Serial.print("Humidity: "); Serial.print(humidity); Serial.print(" % "); Serial.print("Temperature: "); Serial.print(temperature); Serial.println(" *C"); } 🛠️ Calibration and Usage Tips
- Place the sensor in an area with good airflow for accurate readings.
- Avoid direct sunlight, condensation, or proximity to heat sources.
- Observe a 2-second minimum interval between reads to prevent stale data.
- For long cables, use twisted pair and keep pull-up near the controller; keep runs short for signal integrity.
- Periodically verify and recalibrate if used in critical applications.
- Some breakout modules include an onboard pull-up resistor—check your PCB before adding an external one.
✅ Compatibility
- Arduino (UNO, Mega, Nano, Leonardo)
- Raspberry Pi (all models with GPIO)
- ESP32 / ESP8266 and other microcontroller platforms
📐 Summary
The DHT22 (AM2302) is a reliable, high-precision sensor for temperature and humidity with a simple digital single-wire interface, wide voltage support, and excellent long-term stability. It is an excellent choice for Arduino, Raspberry Pi, and IoT projects requiring accurate environmental sensing using common electronics components and modules.