Back in the late 1990s I was debugging a microcontroller circuit that was acting strangely. This was before flash devices were common, so debugging was done with UV-erasable parts.
The circuit wasn't working, but as I went to put a scope probe on one of the pins it started to work. The really strange part was that I hadn't touched the pin yet. After some experimenting, I found that just moving my hand near caused it to work. I suspected a floating input, so double checked that MCLR and such were tied high or low or had pullups/pulldowns. I tried touching ground and Vdd with the other hand and leaving my body floating, but nothing seemed to matter.
After much head scratching I eventually realized that the hand was blocking light from a nearby window. I was just trying a quick and dirty test and hadn't bothered with the sticker over the UV window identifying the firmware version number like I usually did. After all, room light or even outdoor light thru the window was nowhere near enough to erase the chip. It wasn't, but what I forgot to consider was light effecting the normal operation of other parts of the chip.
I never left off the sticker over the window after that. Fortunately things transitioned to flash instead of UV erasable a few years later.