I have installed my breadboard uno into my wall fuse box where i have all connections for my smart home controlling. After house was complete i added some movement sensors(PIR) on stairs, and now im reading those sensors and sending pulses to my main controler to turn lights on when i go on stairs. THe problem is that it all works fine for an hour or 2, but after then arduino stops(there is a blinking led on pcb to control working, and it also stops blinking at same time as sensors stop responding). And then if i remove the power of arduino and power it back on, it starts working again for an hour and stops again.
I did kinda fix this using the softrestart(); library(i call this function evry 30min) so the uno restarts evry half an hour.
But i still would like to find out why the uno stops working. I did check all the sensors and main controllers cables and they still work. also if i conenct main controller input to +5v the lights light up, so the problem is in the atmega328 for sure8 i tried several different megas).
Could it be some high current interferences causing the quartz-cap so change and fall out of sync or someting??