DHT11 module with ESP-01s -- failing to read values

Hi -

I'm using the DHTNew library to read from my DHT11 module. At first, I'll get good data from it, but after about 15 minutes (@ 1 update/minute), the library reports an error code (-4 == DHTLIB_ERROR_SENSOR_NOT_READY).

Looking into the library, I see that this is a timeout error related to the the beginning of data transferred to the sensor.

Once the sensor starts misbehaving, I've never seen it return to working. I've tried a couple different sensor modules. I also went into the library code and increased the relevant timeout by 50%, but no joy there...

Has anyone else seen this kind of behavior?

Thanks.

Hello my friend
Change the library for dht11
and use this

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.