DHT-sensor-library icon indicating copy to clipboard operation
DHT-sensor-library copied to clipboard

Updating refresh rate

Open MakerPact opened this issue 7 months ago • 1 comments

I have made modifications to the files DHT.cpp and DHT.h. The objective is to enable the DHT11 sensor to refresh at its designated refresh rate and to allow the setup to determine whether the user is utilizing a DHT11 or a different sensor.

I have verified its functionality on my end, but it would be beneficial if @cryptoAlgorithm could test it for additional confirmation.

MakerPact avatar May 09 '25 17:05 MakerPact

Ref #206

This block is responsible for enforcing the minimum read interval: https://github.com/adafruit/DHT-sensor-library/blob/2295fe471c38d5e649a7b68cecccc42193c8e41c/DHT.cpp#L232-L238

Specifically, note that the condition at L235 references the hardcoded MIN_INTERVAL definition.

Although you've introduced a new _minInterval property, it's not used anywhere else. The incorrect condition is unchanged.

cryptoAlgorithm avatar Jul 13 '25 16:07 cryptoAlgorithm