The DHT11 is a Temperature and Humidty sensor with a very simple wiring and coding interface.
Wiring
The sensor has three pins, one for Ground, 5V and the Digital line, as noted below.Coding
The example sketch came with the Egeloo set, and can be found in the libraries as SimpleDHT.zip. use the Sketch > Include Library > Add .Zip Library, and browse to the file. Then run the following example:- Examples > DHT11 > DHT11Default
- Can use the SerialMonitor to view the results
- Change the delay to 1500 to eliminate failed reads.
No comments:
Post a Comment