Description

This sensor is essentially a reed switch encased in an ABS plastic shell. Normally the reed is 'open' (no connection between the two wires). The other half is a magnet. When the magnet is less than 13mm (0.5") away the reed switch closes. They're often used to detect when a door or drawer is open which is why they have mounting tabs and screws. You can also pick up some double-sided foam tape from a hardware store to mount these that works well without needing screws.

Technical Details

  • Normally open reed switch
  • ABS enclosure
  • Rated current: 100 mA max
  • Rated voltage: 200 VDC max
  • Distance: 15mm max

Dimensions:

  • Box size (each side): 29mm x 14mm x 9mm / 1.1" x 0.6" x 0.4"
  • Cable Length: 305mm ± 12mm / 12" ± 0.5"
  • Weight (per side): 5.4g

Netduino driver and Netduino sample. This sample shows how to use an interrupt handler to respond to a button press or a magnetic contact switch closing.

    Learn

    Sitcom SFX Door Trigger
    A sitcom soundtrack for your life
    Adafruit's Raspberry Pi Lesson 12. Sensing Movement
    Sense movement and doors opening with your Raspberry Pi
    Trinket Bluetooth Alarm System
    Use the Trinket to build a custom wireless alarm system
    Smart Bathroom App
    Know when it's open for business.
    A Sillier Mousetrap: Logging Mouse Data to Adafruit IO with the Raspberry Pi
    How to outfit a simple live trap with sensors and data-logging and quantify the vermin in your life.