I have been using these sensors in several locations over the past couple years, They have been generally reliable. But I am having trouble with one location. I start with a template image for the SD card and then change the network info. The sensors report to a server recording temperature at that location. The python code will run for days or weeks then stop and won't start without an exception. After a random time it will run for a random amount of time.
I have even stripped out all the mysql and other lines to pin point my problem. I have changed all the hardware including the SD card. I used to think it was weather or temperature but that seems to be rules out. Playing with the sleep time seemed to help but I don't think that any longer. The following is the test code adopted from Adafruit.
Thanks Roger
MCP9808 not working randomly
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
Please be positive and constructive with your questions and comments.