The timing of DHT sensors is quite critical and easily affected if an ISR takes too long.
Without diving into the code you could disable the interrupts when reading the sensor.
The timing of DHT sensors is quite critical and easily affected if an ISR takes too long.
Without diving into the code you could disable the interrupts when reading the sensor.