Simple, Stable and Fast Arduino Temp & Humidity Sensors for DHT11 etc.
- Simple: Simple C++ code with lots of comments.
- Stable: Strictly follow the standard DHT protocol.
- Fast: Support 0.5HZ or 1HZ sampling rate.
To use this library:
- Download the zip from specified version: https://github.com/winlinvip/SimpleDHT/releases
- Import to Arduino: Arduino => Sketch => Include Library => Add .ZIP Library...
- Open example: Arduino => File => Examples => SimpleDHT => DHT11Default
- Connect the DHT11 and Upload program to Arduino.
- Open the Serial Window of Arduino IDE, we got the result as following.
=================================
Sample DHT11...
Sample OK: 19 *C, 31 %
=================================
Sample DHT11...
Sample OK: 19 *C, 31 %
=================================
Remark: For DHT11, no more than 1 Hz sampling rate (once every second).
This library including the following examples:
- DHT11Default: To sample the temperature and humidity.
- DHT11WithRawBits: To sample the temperature and humidity, output the 40 raw bits.
Winlin 2016.1