From 355b91a1997df5f5455893fb4adf2360c5aeb4dc Mon Sep 17 00:00:00 2001 From: iput2020-takemoto Date: Sat, 19 Oct 2024 00:45:00 +0900 Subject: [PATCH] send initial high is too short: 0.05 sec -> 0.6 sec --- dht11/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dht11/__init__.py b/dht11/__init__.py index e274a0e..cc5e862 100644 --- a/dht11/__init__.py +++ b/dht11/__init__.py @@ -34,7 +34,7 @@ def read(self): RPi.GPIO.setup(self.__pin, RPi.GPIO.OUT) # send initial high - self.__send_and_sleep(RPi.GPIO.HIGH, 0.05) + self.__send_and_sleep(RPi.GPIO.HIGH, 0.6) # pull down to low self.__send_and_sleep(RPi.GPIO.LOW, 0.02)