diff --git a/adafruit_dht.py b/adafruit_dht.py index f6fee58..102e8e5 100644 --- a/adafruit_dht.py +++ b/adafruit_dht.py @@ -138,7 +138,8 @@ def _get_pulses_bitbang(self): dhtpin.value = True time.sleep(0.1) dhtpin.value = False - time.sleep(0.001) + # Using the time to pull-down the line according to DHT Model + time.sleep(self._trig_wait // 1000000) timestamp = time.monotonic() # take timestamp dhtval = True # start with dht pin true because its pulled up dhtpin.direction = Direction.INPUT