09-01-2024, 08:46
I have run some tests by changing the two timer values within the DHTxx.cpp file.
Initially set to 400 per your suggestion. I get a single reading only and no further serial output data comes (left for 5 minutes before tying something else).
I also tried values of 300, 500, 260 with the same results: one single reading only displayed through the serial output.
Trying value 255 provides regular serial outputs, but only the initial output is the correct value.
I also tried lowering the timer value: 200, 150, 100 which provides regular serial outputs, but only the initial output is the correct value.
Serial output at timer values of 400:
Kind regards,
Matthew
Initially set to 400 per your suggestion. I get a single reading only and no further serial output data comes (left for 5 minutes before tying something else).
I also tried values of 300, 500, 260 with the same results: one single reading only displayed through the serial output.
Trying value 255 provides regular serial outputs, but only the initial output is the correct value.
I also tried lowering the timer value: 200, 150, 100 which provides regular serial outputs, but only the initial output is the correct value.
Serial output at timer values of 400:
Code:
DHT 14 4 4 4 4 4 4 4 12 12 12 12 4 12 12 4 12 4 4 4 4 4 3 3 12 4 3 3 11 3 3 4 12 3 4 4 4 4 4 4 4
HEX 15 1 ED 1 11 0 : 0
Sending ID0...
Sensor 0 - Temp: 0.00 Hum: 0.00
Sensor 1 - Temp: 27.30 Hum: 49.30
(No further data ever received)Kind regards,
Matthew

