Relays are electromechanical components that utilize an electromagnet to switch an electrical circuit. The basic design of a relay comprises a coil, armature, contacts, and a spring mechanism. When current flows through the coil, it creates a magnetic field which pulls the armature, causing the contacts to connect. This action allows for the contro