Skip to content
/ libDHT Public

Arduino compatible DHT11/22 lib with heatindex, dewpoint and confort algorithms

License

Notifications You must be signed in to change notification settings

ADiea/libDHT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libDHT - yet another DHT lib

Arduino compatible DHT 11/22, AM2302 lib with dewpoint, heat-index and other goodies.

##Features

  1. Autodetection of sensor type.
  2. Determine heat index.
  3. Determine dewpoint with various algorithms(speed vs accuracy).
  4. Determine thermal comfort:
    • Empiric comfort function based on comfort profiles(parametric lines)
    • Multiple comfort profiles possible. Default based on http://epb.apogee.net/res/refcomf.asp
    • Determine if it's too cold, hot, humid, dry, based on current comfort profile
  5. Should be compatible with both pre 1.0.1 and later Arduino versions - NOT TESTED
  6. Optimized for sensor read speed(~5ms for DHT22), stack and code size.
    • Select output between *C(smallest code size), *F, or runtime-defined via fct param.
  7. Compatible w/ Adafruit's lib but can also read both humidity and temp. at the same time.

Tested on

Platform SensorReading*) (ms) DewPoint Accurate-Fast (ms)
ESP8266-ESP12 @ 80Mhz 5.6 (DHT22) 0.5

*)Sensor reading speed should be independent of CPU speed

If you can help with testing on various Arduino platforms or various sensor types, open an issue and let me know.

Credits

Based on DHT-sensor-library https://github.com/adafruit/DHT-sensor-library

Based on arduino-DHT https://github.com/markruys/arduino-DHT

Based on DHTlib https://github.com/RobTillaart/Arduino/tree/master/libraries/DHTlib

Used Sming Framework for the ESP8266 platform https://github.com/anakod/Sming

Disclaimer

This was tested on an ESP8266 module(ESP-12) running at 80Mhz.

This is in theory compatible with Arduino but untested yet

About

Arduino compatible DHT11/22 lib with heatindex, dewpoint and confort algorithms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages