Skip to content

Commit 73409c1

Browse files
Merge pull request #76 from terryjmyers/patch-1
Modified read speed
2 parents 5550a04 + 16e61f1 commit 73409c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DHT.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ boolean DHT::read(bool force) {
134134
// Go into high impedence state to let pull-up raise data line level and
135135
// start the reading process.
136136
digitalWrite(_pin, HIGH);
137-
delay(250);
137+
delay(1);
138138

139-
// First set data line low for 20 milliseconds.
139+
// First set data line low for 1 millisecond.
140140
pinMode(_pin, OUTPUT);
141141
digitalWrite(_pin, LOW);
142-
delay(20);
142+
delay(1);
143143

144144
uint32_t cycles[80];
145145
{

0 commit comments

Comments
 (0)