Interface for the DHT11 and DHT22 sensors, does not use floating point. More...
#include <Ports.h>
Public Member Functions | |
| DHTxx (byte pinNum) | |
| bool | reading (int &temp, int &humi, bool precise=false) |
| Results are returned in tenths of a degree and percent, respectively. More... | |
Interface for the DHT11 and DHT22 sensors, does not use floating point.
| bool DHTxx::reading | ( | int & | temp, |
| int & | humi, | ||
| bool | precise = false |
||
| ) |
Results are returned in tenths of a degree and percent, respectively.
Set "precise" to true for the more accurate DHT21 and DHT22 sensors.