This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:iot:examples:dht [2018/12/27 12:53] external edit
en:iot:examples:dht [2019/04/08 17:20] (current)
Line 5: Line 5:
 {{:​en:​iot:​examples:​dhtpicture1.jpg?​200|}} {{:​en:​iot:​examples:​dhtpicture1.jpg?​200|}}
 {{:​en:​iot:​examples:​dhtpicture2.jpg?​200|}} {{:​en:​iot:​examples:​dhtpicture2.jpg?​200|}}
 +NB! If your DHT shield has one leg removed as in the picture below, please change the #define DHTPIN D4 to D3 in the program code.
 Needed libraries: Needed libraries:
Line 16: Line 20:
 #include <​DHT.h>​ #include <​DHT.h>​
-#define DHTPIN D4     // what pin we're connected to+#define DHTPIN D4     // what pin we're connected to. Change this to D3 if your shield has one leg removed.
 #define DHTTYPE DHT22   // DHT 22  (AM2302) #define DHTTYPE DHT22   // DHT 22  (AM2302)
en/iot/examples/dht.txt ยท Last modified: 2019/04/08 17:20 by rim.puks
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0