DHT22 Digital Temperature & Humidity Sensor
DHT22 Digital Temperature & Humidity Sensor is backordered and will ship as soon as it is back in stock.
The DHT22 (AM2302) Digital Temperature & Humidity Sensor is an advanced sensor offering precise environmental measurements with improved accuracy and a wider range than the DHT11. It is ideal for Arduino, Raspberry Pi, ESP32, and DIY electronics projects, including weather stations, home automation, and environmental monitoring applications.
Key Features & Specifications
- Temperature Range: -40°C to 80°C
- Temperature Accuracy: ±0.5°C
- Temperature Resolution: 0.1°C
- Humidity Range: 0–100% RH
- Humidity Accuracy: ±2% RH
- Response Time: ~2 seconds
- Interface: Single-wire digital (DHT protocol)
- Compatibility: Arduino, Raspberry Pi, ESP32
- Applications: Weather stations, environmental monitoring, indoor/outdoor automation
What’s Included
- 1 × DHT22 (AM2302) Digital Temperature & Humidity Sensor
- 1 × 3-pin 10cm female-to-female jumper wire
Getting Started
Using the DHT22 with your microcontroller is simple:
- Connect VCC to 3.3–5V and GND to ground.
- Connect the data pin to a digital GPIO pin on your microcontroller.
- Use libraries such as DHT sensor library for Arduino or Python modules on Raspberry Pi to read temperature and humidity.
- Check sensor timing: the DHT22 has a slower sampling rate (~0.5 Hz), so read data every 2 seconds.
- For multiple sensors, ensure each has a separate data pin or appropriate timing between readings.
Troubleshooting Tips
- If readings seem unstable, check wiring and power stability.
- Keep the sensor away from condensation and extreme moisture exposure.
- Ensure libraries are correctly installed and the proper GPIO pin is used.
Comparison & Alternatives
For beginners or simple indoor projects, consider the DHT11 Digital Temperature & Humidity Sensor. Both sensors are compared in detail in our Best Arduino Digital Temperature Sensors guide, which also includes BME280 and DS18B20 comparisons.
Related Products
- DHT11 vs DHT22 Sensors Comparison + Wiring & Code Examples
- DHT11 Digital Temperature & Humidity Sensor
- DHT22 AM2302 Module
- BME280 I2C / SPI Temp, Humidity & Pressure Sensor
- DS18B20 Stainless Steel Temperature Sensor
- Other Arduino & ESP32 Temperature Sensors
FAQ
What is the difference between DHT11 and DHT22
We've produced a detailed guide comparing the DHT11 and DHT22 digital temperature sensors. For a quick summary, the DHT11 is lower cost but has a limited temperature range and lower accuracy. The DHT22 offers higher precision, a wider operating range, and better suitability for outdoor or long-term monitoring projects.
Does the DHT22 work with Arduino, Raspberry Pi, and ESP32?
Yes. The DHT22 (AM2302) works with most popular microcontrollers and single-board computers, including Arduino, Raspberry Pi, and ESP32. Libraries and example code are widely available, making it easy to integrate into your projects.
Do I need a pull-up resistor
This DHT22 modules include a built-in pull-up resistor on the data line. If you are using a bare sensor, an external pull-up resistor may be required for stable communication.
How often can I read data from the DHT22?
The DHT22 has a typical sampling rate of around 0.5 Hz. For reliable operation and accurate readings, you should read data no more frequently than once every 2 seconds.
Can I use the DHT22 outdoors?
The DHT22 is suitable for indoor and sheltered environments. For outdoor use, it should be placed in a protective, ventilated enclosure that shields it from direct rain, condensation, and extreme conditions while still allowing air flow.
How accurate is the DHT22 compared to the DHT11?
The DHT22 offers a wider measurement range and better accuracy than the DHT11. It provides temperature readings from -40°C to 80°C with ±0.5°C accuracy and humidity readings from 0–100% RH with ±2% RH accuracy, making it better suited for precise environmental monitoring.
The DHT22 combines wide-range measurement, high accuracy, and reliable single-wire digital output, making it perfect for any environmental sensing project where precise temperature and humidity readings are required.
This product can be found here:



