Hi everyone,
I’d like to share an update to myDHT, an Arduino library for DHT11 and DHT22 sensors.
Version 2.0.2 is now available directly via the Arduino Library Manager.
The main goal of this release was to make the library safer and clearer for beginners, while still providing full control and diagnostics for advanced users.
What’s new in the 2.0.x series
Layered API design
myDHT – beginner layer
- Safe read intervals enforced automatically
- Internal caching
- Simple API:
getTemperature(),getHumidity(),dewPoint(),HiIndex()
myDHTPro – advanced layer
- Full protocol-level access
- Debug and test modes
- Asynchronous reads (state-machine based)
- Raw pulse timing access
- Multi-sensor support
Reliability improvements
- Corrected minimum sampling intervals for DHT11 and DHT22
- Safe read handling (
readSafe) - Improved behavior in memory-optimized builds
Tested on real hardware
- Arduino Uno & Nano
- DHT11 and DHT22
Demo projects
Beginner-friendly demo projects showing real-world use cases:
- Zero-configuration weather monitor
- Dew point greenhouse indicator
- Heat index analog gauge (servo-based)
The library is fully standalone (no external dependencies) and is intended to be both reliable in practice and useful for learning how DHT sensors actually work internally.
GitHub:
Feedback, testing on other boards, and suggestions are very welcome.
Thanks,
Toni