Relays are electrically operated switches that open and close the circuits by receiving electrical signals from outside sources.