This magnetic contact switch is nice and small, and is designed for flush or countersink installations.
The switch handles gaps of up to 1 inch between the magnet and the switch. The switch will turn the digital input "on" when the magnet is within 1" of the switch, and will turn it "off" when the contact is broken by moving the magnet away.
|Switch size||1/4" diameter|
|Cable length||45cm (18")|
|Gap size||up to 1"|