Skip to content

Latest commit

 

History

History
 
 

DHT11

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Driver for the DHT11 Temperature/Humidity Sensor

Author: Tom Byrne

Driver class for a DHT11 temperature/humidity sensor. This class is also compatible with the RHT03 temperature/humidity sensor

Datasheets for this part are quite numerous and varied; this one was useful in writing this class.

Hardware Setup

The DHTxx family uses a proprietary 1-wire protocol. The imp can emulate this protocol with SPI, using both the MISO and MOSI lines. To use, tie MISO and MOSI together with a 1kΩ resistor, then tie MISO to the DATA line on the DHTxx.

Connecting a DHT11 to an Electric Imp Card