We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05219a commit 31b6b45Copy full SHA for 31b6b45
examples/DHTtester/DHTtester.pde
@@ -6,13 +6,14 @@
6
#define DHTPIN 2 // what pin we're connected to
7
8
// Uncomment whatever type you're using!
9
-//#define DHTTYPE DHT11 // DHT 11 works
+//#define DHTTYPE DHT11 // DHT 11
10
#define DHTTYPE DHT22 // DHT 22 (AM2302)
11
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
12
13
// Connect pin 1 (on the left) of the sensor to +5V
14
// Connect pin 2 of the sensor to whatever your DHTPIN is
15
// Connect pin 4 (on the right) of the sensor to GROUND
16
+// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor
17
18
DHT dht(DHTPIN, DHTTYPE);
19
0 commit comments