We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d122696 commit d2da873Copy full SHA for d2da873
adafruit_dht.py
@@ -140,7 +140,7 @@ def _get_pulses(self):
140
dhtval = True # start with dht pin true because its pulled up
141
dhtpin.direction = Direction.INPUT
142
dhtpin.pull = Pull.UP
143
- while time.monotonic() - timestamp < 0.1:
+ while time.monotonic() - timestamp < 0.25:
144
if dhtval != dhtpin.value:
145
dhtval = not dhtval # we toggled
146
transitions.append(time.monotonic()) # save the timestamp
0 commit comments