Alternates the relays from on and off in a loop every second which corresponds to the LED on the Arduino