A reed switch is a small device that when the device is exposed to a magnetic field, the two materials inside the switch pull together and the switch closes. When the magnetic field is removed, the two materials then separate and the switch will open.
Magnetic reed (with LED)
Install type: Plug-in
Sensor Type: Vibration, detects magnetic fields
Component attach: PCB or breadboard