Hello,
I have been using freertos for a project and I’ve done 3 tasks which all worked perfectly except for one which reads the temperature and humidity of dht11. When I call dht.readTemperature() or dht.readHumidity() it block indefinetely. I suspect it is connected to the fact that the library uses the delay() function. Any way I can solve this without remaking the dht11 library?
I had solved the problem by increasing the stack size to 400 (at least). Check the unused stack and adjust it to your need.
Also, it is better to update the DHT library and (not required) replace the delay() function in it by vTaskDelay().