From 9d70a194d97e016349ff71f59355c4e1e42b91f6 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 22 Jun 2020 11:14:12 +0200 Subject: [PATCH] Change delay(2) to delayMicroseconds(2000) Change delay(2) to delayMicroseconds(2000) and see if it helps (#7468) --- tasmota/xsns_06_dht.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/xsns_06_dht.ino b/tasmota/xsns_06_dht.ino index 46fb69fa5..7bb1a3513 100644 --- a/tasmota/xsns_06_dht.ino +++ b/tasmota/xsns_06_dht.ino @@ -77,7 +77,8 @@ bool DhtRead(uint32_t sensor) delay(19); // minimum 18ms break; case GPIO_DHT22: // DHT21, DHT22, AM2301, AM2302, AM2321 - delay(2); // minimum 1ms +// delay(2); // minimum 1ms + delayMicroseconds(2000); // See https://github.com/arendst/Tasmota/pull/7468#issuecomment-647067015 break; case GPIO_SI7021: // iTead SI7021 delayMicroseconds(500);