Skip to content

Latest commit

 

History

History

DHT22

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Driver for the DHT22 Temperature/Humidity Sensor

Author: Tom Byrne

Driver class for a DHT22 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 DHT22 to an Electric Imp Card