This commit is contained in:
Tony DiCola 2015-10-12 21:30:18 -07:00
commit edcd0e06e6
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
This is an Arduino library for the DHT series of low cost temperature/humidity sensors. This is an Arduino library for the DHT series of low cost temperature/humidity sensors.
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 <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. 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 <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.

View File

@ -3,11 +3,11 @@
#include "DHT.h" #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! // Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11 //#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302) #define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
//#define DHTTYPE DHT21 // DHT 21 (AM2301) //#define DHTTYPE DHT21 // DHT 21 (AM2301)
// Connect pin 1 (on the left) of the sensor to +5V // Connect pin 1 (on the left) of the sensor to +5V