mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00
Merge branch 'master' of https://github.com/adafruit/DHT-sensor-library
This commit is contained in:
commit
edcd0e06e6
@ -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.
|
||||||
|
|
||||||
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.
|
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.
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user