12mm Reed Switch/Sensor
π Overview
A 12mm Reed Switch Sensor is a magnetic switch that detects the presence of a magnet and changes its state (ON/OFF).
π It is one of the simplest and most reliable contactless sensors used in electronics.
π§ Working Principle
Inside the sensor β two thin metal reeds sealed in a glass tube
Normally β contacts are open (NO)
When a magnet comes near β reeds attract and touch β circuit closes
When magnet is removed β reeds separate again
β Works purely on magnetic field (no power needed for basic switch)
π Infographic Summary
ββββββββββββββββββββββββββββββββ
β π§² 12mm REED SWITCH SENSOR β
ββββββββββββββββββββββββββββββββ€
β π― Detects: Magnetic field β
β β‘ Voltage: Up to 24V β
β π Output: Digital (ON/OFF) β
β π Size: 12mm (glass tube) β
β π§ Type: Magnetic switch β
β π Response: Instant β
ββββββββββββββββββββββββββββββββ
π Basic Connection
ββββββββββββββββ
β Reed Switch β
ββββββββββββββββ€
β Pin 1 β VCC / Signal
β Pin 2 β GND
ββββββββββββββββ
π Acts like a simple switch, so you can use it directly or with a pull-up resistor.
βοΈ Key Specifications
β‘ Max Voltage: ~24V DC
π Max Current: ~1.2A
π Size: 12mm length (compact)
π‘ Temperature Range: -50Β°C to 140Β°C
π Life Cycle: ~100,000 operations
π‘ Output: Digital only (ON/OFF)
π Key Features
π§² Magnetic field detection
β‘ No power needed for basic operation
π§ Very easy to use
π° Extremely low cost
π¦ Small and lightweight
π Fully sealed (dust & moisture resistant)
π§ͺ Applications
πͺ Door/window security sensors
π¨ Burglar alarm systems
π¦ Position detection (open/close)
π² Speed sensors (wheel rotation with magnet)
π€ Robotics & automation
π§© Smart home projects
π Interfacing with Microcontrollers
Works with:
π΅ Arduino
π‘ ESP32 / ESP8266
π Raspberry Pi
π Use digital input pin to detect state change.
β οΈ Important Notes
β οΈ Fragile (glass body β handle carefully)
β οΈ Requires a magnet to operate
β οΈ Limited switching current (use relay for high loads)
β οΈ Sensitive to strong magnetic interference
π¬ Real-world insight:
Reed switches are simple but can wear out if switching high current frequently (arcing effect).
π Reed Switch vs Hall Effect Sensor
| Feature | Reed Switch | Hall Sensor |
|---|---|---|
| Output | Digital (ON/OFF) | Analog/Digital |
| Power Required | No (passive) | Yes |
| Durability | Mechanical wear | No moving parts |
| Cost | Very cheap | Slightly higher |
π‘ Pro Tip
For better projects:
Use magnet + reed switch for door sensors
Add pull-up resistor (10kΞ©) for stable readings
For high durability β consider Hall sensor instead
