dht2x-thermometer

xod/common-hardware/dht2x-thermometer

Reads temperature and humidity from a DHT21 or compatible sensor: DHT21, DHT22, DHT33, DHT44, AM2301, HM2301, AM2302, AM2303, RHT02, RHT03, RHT04, RHT05. Possible errors: — Checksum failure — Read timeout — Initialization error — Invalid port
dht2x-thermometer
@/dht2x-thermometer
Deprecated: Use `xod-dev/dht/dht2x-hygrometer` instead
Reads temperature and humidity from a DHT21 or compatible sensor: DHT21, DHT22, DHT33, DHT44, AM2301, HM2301, AM2302, AM2303, RHT02, RHT03, RHT04, RHT05. Possible errors: — Checksum failure — Read timeout — Initialization error — Invalid port
PORTport
Board port number the thermometer is connected to.
UPDpulse
Triggers an update, i.e. reading values again.
dht2x-thermometer
Tc
RH
DONE
PORT
UPD
DONEpulse
Fires on reading complete
RHnumber
Relative humidity in ragne [0.0, 1.0]
Tcnumber
Last read temperature in °C.