Its a micro controller (89c51) controlled relay mechanism, wherein the system executes one complete iteration of? turning? ON and turning OFF the relay's and goes back to the start of the system (polling the input pins). The relays which operate (turn ON ? & turn OFF) on a specific mechanism needs to be programmed. The relay to Turn ON, does not get turned ON until the previous mechanism has been performed. Hence avoiding a faulty turn ON of the second relay.