Arduino stops working after an unpredictable period of time

The code is simple enough :slight_smile:
How do you control the relay? Show a schematic or photo of you wiring