Infomercial Announcer: The bit banging. The 100% CPU load. The corrupt readings. The incorrect readings...

Desperate DHT11/22 User: There's got to be a better way !!!

OK, so what are better alternatives? In general, anything that uses a clock signal. This could be SPI, but most sensors of this class will end up using I2C. Not only does the clock signal eliminate the need for tight timing requirements, most microcontrollers have dedicated I2C peripherals for easy interfacing.

The DHT11/22 sensors have two primary measurements:

  • Humidity
  • Temperature

These are basically humidity sensors, temperature just comes along for the ride. So take a look at all available humidity sensor options here:

If you have specific requirements in terms of power or accuracy, then take a look at each one's datasheets for specifications.

From The Makers Of...

OK, you want something as cheap as those ubiquitous DHT11/22 sensors? Well, from the same folks that brought you those, now comes the AHT20 sensor. This is a modern spin which uses I2C. And they cost like 5 bucks. Neat!

And it comes in various packaging options. There's a breakout version with STEMMA QT connectors:

Adafruit AHT20 - Temperature & Humidity Sensor Breakout Board
The AHT20 is a nice but inexpensive temperature and humidity sensor from the same folks that brought us the DHT22. You can take...
$4.50
In Stock

Another version with pig tail wires:

Top view of black humidity sensor sensor wired to a breadboard with an FeatherWing OLED display. The OLED shows the data from the temperature-humidity sensor.
The AM2301B is a nice but inexpensive temperature and humidity sensor
$7.95
In Stock

And for that old school look, a version in the classic DHT11/22 waffle brick style:

Top view of DHT20 sensor wired to a breadboard with an FeatherWing OLED display. The OLED shows the data from the temperature-humidity sensor.
The DHT20 is a nice but inexpensive temperature and humidity sensor from the same folks that brought us the DHT22.This little...
Out of Stock

So cost can no longer be an excuse for choosing a DHT11/22.

This guide was first published on Sep 01, 2021. It was last updated on 2021-09-01 13:40:56 -0400.

This page (What are better alternatives?) was last updated on May 24, 2022.

Text editor powered by tinymce.