Relays are electromechanical instruments that utilize an electromagnet to switch an electrical connection. 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 draws the armature, causing the contacts to engage. This action allows for the con