Hi community, a pseudo newbie here. I developed a projects based on WemosMiniD2 that reads temperature (Ds18b20 reader), and controls an actuator to open/closes a greenhouse door and also turns on a PTC heater when very cold. It also sends update to ThingsSpeak. Problem is that a lot of the temperature updates show error. I've checked connections, they look good. Is there anything on the code that is not giving enough time? I have a 3 times try handlers, but still in many instances it doesn't record. It's in the measureTemperature() function. Image shows how much of the time temperature doesn't record (NAN)....
Please help!