PietteTech_DHT acquireAndWait buggy when timeout is set

When I use DHT.acquireAndWait(2000) with a timeout then the values return by DHT.getCelsius() or DHT.getHumidity() calls are always “-5.00” while return value is DHTLIB_OK. If I use DHT.acquireAndWait() the values are corrects.

Yup, I’ve noticed that too and filed an issue about that a while ago

With the correction proposed in there I do get good readings.