MCP9808 not working randomly

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rogerded
 
Posts: 1
Joined: Wed Sep 22, 2021 11:12 am

MCP9808 not working randomly

Post by rogerded »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”