# Modern Replacements for DHT11 and DHT22 Sensors

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/104/322/medium800/components_banner.jpg?1630514792)

The appearance of the [Arduino UNO](https://en.wikipedia.org/wiki/Arduino_Uno), back in the 2010 time frame, really changed the landscape of easily programmable microcontrollers. The associated Arduino IDE, along with numerous libraries that were being published, made writing and uploading programs much easier (by a lot) than previously possible. Attaching various sensors, to measure things like pressure or acceleration, suddenly became very accessible.

When it came to measuring humidity, the [DHT11](https://www.adafruit.com/product/386) and [DHT22](https://www.adafruit.com/product/385) sensors dominated the market. These were super cheap, readily available, and had ready-to-go Arduino libraries. Tons of guides were published using these sensors as demos.

Fast forward to now. The microcontroller market has evolved significantly. While you can still [buy an Arduino UNO](https://www.arduino.cc/en/Main/ArduinoBoardUno), there are now much more powerful options available. Even powerful enough to allow running an interpretive language like [CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython). Also, single board computers, like the [Raspberry Pi](https://www.raspberrypi.org/), which run a full Linux operating system, provide a totally different class of host controllers.

In this modern landscape, are the DHT11/22 still good cheap choices for measuring humidity? The answer is **NO**. In this guide we go into why that is by briefly looking at how the DHT11/22 sensors work. We then provide some information on modern alternatives that should generally be used instead of the DHT11/22.

- [Next Page](https://learn.adafruit.com/modern-replacements-for-dht11-dht22-sensors/why-are-they-probelmatic.md)

## Featured Products

### Adafruit AHT20 - Temperature & Humidity Sensor Breakout Board

[Adafruit AHT20 - Temperature & Humidity Sensor Breakout Board](https://www.adafruit.com/product/4566)
The AHT20 is a nice but inexpensive temperature and humidity sensor [from the same folks that brought us the DHT22](https://www.adafruit.com/product/385). You can take sensor readings as often as you like, and it uses standard I2C so its super easy to use with any Arduino or...

In Stock
[Buy Now](https://www.adafruit.com/product/4566)
[Related Guides to the Product](https://learn.adafruit.com/products/4566/guides)
### DHT20 - AHT20 Pin Module - I2C Temperature and Humidity Sensor

[DHT20 - AHT20 Pin Module - I2C Temperature and Humidity Sensor](https://www.adafruit.com/product/5183)
The DHT20 is a nice but inexpensive temperature and humidity sensor [from the same folks that brought us the DHT22](https://www.adafruit.com/product/385).

This little sensor looks an&nbsp;_awful lot&nbsp;_like the popular DHT11/DHT22 temperature and humidity sensors,...

In Stock
[Buy Now](https://www.adafruit.com/product/5183)
[Related Guides to the Product](https://learn.adafruit.com/products/5183/guides)
### AM2301B - Wired Enclosed AHT20 - Temperature and Humidity Sensor

[AM2301B - Wired Enclosed AHT20 - Temperature and Humidity Sensor](https://www.adafruit.com/product/5181)
The AM2301B is a nice but inexpensive temperature and humidity sensor [from the same folks that brought us the AM2302](https://www.adafruit.com/product/393).

In fact, this enclosed sensor looks an&nbsp;_awful lot&nbsp;_like the popular DHT22/AM2302 temperature and...

In Stock
[Buy Now](https://www.adafruit.com/product/5181)
[Related Guides to the Product](https://learn.adafruit.com/products/5181/guides)
### DHT22  temperature-humidity sensor + extras

[DHT22  temperature-humidity sensor + extras](https://www.adafruit.com/product/385)
The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air and spits out a digital signal on the data pin (no analog input pins needed). It's fairly simple to use but requires careful timing...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/385)
[Related Guides to the Product](https://learn.adafruit.com/products/385/guides)
### DHT11 basic temperature-humidity sensor + extras

[DHT11 basic temperature-humidity sensor + extras](https://www.adafruit.com/product/386)
 **Discontinued -**  **you can grab the&nbsp;** [DHT20 - AHT20 Pin Module - I2C Temperature and Humidity Sensor](https://www.adafruit.com/product/5183)&nbsp; **instead!&nbsp;**

The DHT11 is a basic, ultra low-cost digital temperature and humidity sensor. It uses...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/386)
[Related Guides to the Product](https://learn.adafruit.com/products/386/guides)
### AM2302 (wired DHT22)  temperature-humidity sensor

[AM2302 (wired DHT22)  temperature-humidity sensor](https://www.adafruit.com/product/393)
Discontinued - [**you can grab** AM2301B - Wired Enclosed AHT20 - Temperature and Humidity Sensor&nbsp; **instead!**](https://www.adafruit.com/product/5181)

The AM2302 is a wired version of the [DHT22](http://www.adafruit.com/products/385), in a large plastic...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/393)
[Related Guides to the Product](https://learn.adafruit.com/products/393/guides)

## Related Guides

- [Adafruit AHT20 Temperature & Humidity Sensor](https://learn.adafruit.com/adafruit-aht20.md)
- [Quick Start: Pico W / 2W with WipperSnapper](https://learn.adafruit.com/quick-start-the-pico-w-with-wippersnapper.md)
- [No-Code IoT Humidity and Temperature Sensor with Adafruit IO WipperSnapper](https://learn.adafruit.com/no-code-humidity-and-temp-tracker.md)
- [Pico W PiCowBell Case](https://learn.adafruit.com/pico-w-picowbell-case.md)
- [Quick-Start the Pico W WiFi with CircuitPython](https://learn.adafruit.com/pico-w-wifi-with-circuitpython.md)
- [TMP36 Temperature Sensor](https://learn.adafruit.com/tmp36-temperature-sensor.md)
- [reef-pi Guide 7: Dosing Controller](https://learn.adafruit.com/reef-pi-guide-5-dosing-controller.md)
- [Adafruit SPA06-003 - Temperature + Pressure Sensor](https://learn.adafruit.com/adafruit-spa06-003-temperature-pressure-sensor.md)
- [Personal Torch 3000](https://learn.adafruit.com/pt3000-personal-torch.md)
- [Digital Circuits 4: Sequential Circuits](https://learn.adafruit.com/digital-circuits-4-sequential-circuits.md)
- [Step Switch Party](https://learn.adafruit.com/step-switch-party.md)
- [Adafruit FT232H Breakout](https://learn.adafruit.com/adafruit-ft232h-breakout.md)
- [Kombucha Thermostat with CircuitPython and Feather ](https://learn.adafruit.com/kombucha-thermostat-with-circuitpython-and-feather.md)
- [AM2315 - Encased I2C Temperature/Humidity Sensor](https://learn.adafruit.com/am2315-encased-i2c-temperature-humidity-sensor.md)
- [No-Code, No-Solder Monitoring For Perfect Bread](https://learn.adafruit.com/no-code-no-solder-temperature-monitoring-with-wippersnapper-offline.md)
