Arduino compatible DHT 11/22, AM2302 lib with dewpoint, heat-index and other goodies.
##Features
- Autodetection of sensor type.
- Determine heat index.
- Determine dewpoint with various algorithms(speed vs accuracy).
- 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
- Should be compatible with both pre 1.0.1 and later Arduino versions - NOT TESTED
- 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.
- Compatible w/ Adafruit's lib but can also read both humidity and temp. at the same time.
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.
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
This was tested on an ESP8266 module(ESP-12) running at 80Mhz.
This is in theory compatible with Arduino but untested yet