Skip to content

Commit a10405d

Browse files
Delay for longer before listening for signal
Delay for 50 us not 10 us after pulling data line low. This change is taken from a comment on Issue 48 (adafruit#48) of the Adafruit library (https://github.com/adafruit/DHT-sensor-library) Reference: adafruit#48 (comment)
1 parent 5a86956 commit a10405d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DHT.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ boolean DHT::read(bool force) {
161161

162162
// Now start reading the data line to get the value from the DHT sensor.
163163
pinMode(_pin, INPUT_PULLUP);
164-
delayMicroseconds(10); // Delay a bit to let sensor pull data line low.
164+
delayMicroseconds(50); // Delay a bit to let sensor pull data line low.
165165

166166
// First expect a low signal for ~80 microseconds followed by a high signal
167167
// for ~80 microseconds again.

0 commit comments

Comments
 (0)