diff --git a/README.txt b/README.md similarity index 90% rename from README.txt rename to README.md index 4dfcbab..8bd49ff 100644 --- a/README.txt +++ b/README.md @@ -1,3 +1,5 @@ This is an Arduino library for the DHT series of low cost temperature/humidity sensors. -To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. \ No newline at end of file +Tutorial: https://learn.adafruit.com/dht + +To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. diff --git a/examples/DHTtester/DHTtester.ino b/examples/DHTtester/DHTtester.ino index f397f0a..ae6c41a 100644 --- a/examples/DHTtester/DHTtester.ino +++ b/examples/DHTtester/DHTtester.ino @@ -3,11 +3,11 @@ #include "DHT.h" -#define DHTPIN 2 // what pin we're connected to +#define DHTPIN 2 // what digital pin we're connected to // Uncomment whatever type you're using! //#define DHTTYPE DHT11 // DHT 11 -#define DHTTYPE DHT22 // DHT 22 (AM2302) +#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321 //#define DHTTYPE DHT21 // DHT 21 (AM2301) // Connect pin 1 (on the left) of the sensor to +5V