Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 528 Bytes

dht12.rst

File metadata and controls

23 lines (14 loc) · 528 Bytes

dht12 module

dht12

DHT12

The basic class for handling the communication with the sensor.

The i2c parameter is an initialized I²C bus, and the optional address specifies which sensor to connect to, if you have more than one and have changed their addresses with the Addr pin.

temperature()

Get the temperature in Celcius

humidity()

Get the relative humidity as a percentage