Automobiles are fitted with visors that can be swiveled downwards and outwards to block the sun from the driver or passenger’s eyes. These visors also come with a vanity mirror under it that may have a slide that triggers up a tiny lamp. Closing the slide over the mirror switches off the lamp and also protects the mirror. If by chance the light is turned on and the sun visor is turned upwards without closing the sliding door, the lamp should switch off. This can be achieved by wiring a reed sensor inside the shaft with a magnet on the swiveling visor which shuts off the lamp when the visor is closed. A reed sensor and a magnet is also used in the sliding mirror assembly to turn off the lamp when the slide is closed. Suitable products for use in this application are the MS-212 or MS-214 cylindrical Reed Sensors.