A mini reed switch is a small magnetic sensor that can detect the presence or absence of a magnetic field. It consists of two metal contacts enclosed in a glass capsule and a thin, ferromagnetic reed that acts as a switch.