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 c978977 commit b429942Copy full SHA for b429942
DHT.cpp
@@ -153,11 +153,10 @@ boolean DHT::read(bool force) {
153
154
// End the start signal by setting data line high for 40 microseconds.
155
digitalWrite(_pin, HIGH);
156
- delayMicroseconds(40);
+ pinMode(_pin, INPUT_PULLUP);
157
158
// Now start reading the data line to get the value from the DHT sensor.
159
- pinMode(_pin, INPUT_PULLUP);
160
- delayMicroseconds(10); // Delay a bit to let sensor pull data line low.
+ delayMicroseconds(60); // Delay a bit to let sensor pull data line low.
161
162
// First expect a low signal for ~80 microseconds followed by a high signal
163
// for ~80 microseconds again.
0 commit comments