What is Relay?

A relay is a type of switch that is operated electrically, it uses an electromagnet to operate a switching mechanism but other principles are also used.