Is it a windowed PIC? Just a thought, but if any UV is getting through the dome from the direct sunlight, it may be changing ram or even worse, erasing parts of the program. Just a thought from a beginner. David.