How does a relay work?
A relay is an electrically operated switch. It consists of a coil that, when energized, creates a magnetic field which attracts a lever and changes the switch contacts. Relays are used to control a high-power circuit with a low-power signal, often in safety-critical applications.