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.
2 parents be8859e + b429942 commit b3b0b08Copy full SHA for b3b0b08
DHT.cpp
@@ -162,11 +162,10 @@ bool DHT::read(bool force) {
162
163
// End the start signal by setting data line high for 40 microseconds.
164
digitalWrite(_pin, HIGH);
165
- delayMicroseconds(40);
+ pinMode(_pin, INPUT_PULLUP);
166
167
// Now start reading the data line to get the value from the DHT sensor.
168
- pinMode(_pin, INPUT_PULLUP);
169
- delayMicroseconds(10); // Delay a bit to let sensor pull data line low.
+ delayMicroseconds(60); // Delay a bit to let sensor pull data line low.
170
171
// First expect a low signal for ~80 microseconds followed by a high signal
172
// for ~80 microseconds again.
0 commit comments