Wait more than 2 seconds for better DHT sensor reads

This commit is contained in:
2026-08-17 23:14:10 +02:00
parent bcc3670aff
commit af556fde58
+1 -1
View File
@@ -24,7 +24,7 @@ def get_temperature_and_humidity():
return None, None return None, None
def get_temperature_and_humidity_with_retry(max_retries=4, retry_delay=1.5): def get_temperature_and_humidity_with_retry(max_retries=4, retry_delay=2.5):
""" """
Reads temperature and humidity with retries. Reads temperature and humidity with retries.
Uses a 1.5s delay between attempts to respect DHT sampling limits. Uses a 1.5s delay between attempts to respect DHT sampling limits.