Relays are electromagnetic switches used to control the flow of electric current in a circuit. They consist of a coil and one or more sets of contacts. In circuit diagrams, relay symbols are used to represent these devices. In operation, when a voltage is applied across the coil terminals, it generates a magnetic field that