Everythings worked very well for three months till this Monday! The station reading the external temperature stop working. I did replace the sensors and the ESP module without any success.
When I dismounted everything, to take the device on my laboratory table and try to understand what was wrong, I discover that everything was perfectly working again (I have done nothing). Mistery! I did re-mounted everything back in place, once switched on everything was still working as expected. Watching the graph showing the reading gradually dropping down (external temperature was 5 degree celsius), when the sensors reached 10 degrees celsius the system crashed again (the ESP blue led was continuosly flashing once every seconds ) but no more answer to the client requesting data.
i make a cross checking moving the sensors inside my home were the ambient was 21 degrees celsius and after a reboot the system worked again and is still working now after 10 hours (with the snsors at 20/21 degrees celsius.
Since the maxim data sheet report that the DS1820 can read temperature down to -40 degree celsius I assume there must be a bug within the routine reading onewire, or I do something wrong (but I don't know what I am doing wrong)
Here the code I use to read the DS1820
1) collecting the three sensors ID with instruction: vv = temp()
Separate the three ids with index_1 = trim(mid(vv,1,16)) ..... index_3 = trim(mid(vv,35,16))
2) st_1 = temp(index_1)
st_2 = temp(index_2)
st_3 = temp(index_3)c
If I do something wrong any advice is welcome, if it is a bug can be corrected?