Using interrupts on the Arduino Nano

So - apart from having three LEDs - what doees that have to do with traffic lights? Do you have so much traffic at home you need to control the flow?

The TWO DIFFERENT situations you describe are classic examples for the use of a state machine.
My tutorial below has the traffic lights as an example.