Relays may be connected together to perform logic and control functions, acting as logic elements much like digital gates (AND,…