What is a relay and how is it used in electrical circuits?
A relay is an electrically operated switch that uses an electromagnet to mechanically operate a switching mechanism. It is used in electrical circuits to control a high-power circuit with a low-power signal, often in safety-critical applications like switching off machinery.