Tape drive fun
Back in the day as a field engineer I had a customer who had issues with a tape storage machine, the large reel-reel type, it wouldn't stop when the tape reached the end or something similar, but it only happened in the afternoon and then not all days.
To cut a long story short, sunlight through the window, only in the afternoon, was confusing a sensor. Cured by a strategically placed piece of tape on the front cover. Took a while to work that one out.