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:
Another version with pig tail wires:
And for that old school look, a version in the classic DHT11/22 waffle brick style:
So cost can no longer be an excuse for choosing a DHT11/22.
Text editor powered by tinymce.