Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

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

You can’t perform that action at this time.