Skip to content

Commit 31b6b45

Browse files
committed
clarified the pullup
1 parent b05219a commit 31b6b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/DHTtester/DHTtester.pde

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
#define DHTPIN 2 // what pin we're connected to
77

88
// Uncomment whatever type you're using!
9-
//#define DHTTYPE DHT11 // DHT 11 works
9+
//#define DHTTYPE DHT11 // DHT 11
1010
#define DHTTYPE DHT22 // DHT 22 (AM2302)
1111
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
1212

1313
// Connect pin 1 (on the left) of the sensor to +5V
1414
// Connect pin 2 of the sensor to whatever your DHTPIN is
1515
// 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
1617

1718
DHT dht(DHTPIN, DHTTYPE);
1819

0 commit comments

Comments
 (0)