Description
What it is
Magnetic reed sensors are electronic components used to detect the presence of a magnetic field. This specific product consists of three normally open reed sensor pieces, ideal for detecting the opening or closing of doors or windows.
Features
- Pieces: 3
- Type: Magnetic reed sensor
- Configuration: Normally Open (NO)
- Dimensions: 2 * 14mm
What it is for
Reed sensors can be used for various projects such as automatic doors, home alarms, or any situation where it is necessary to detect the opening or closing of a door. For example, you can connect the sensor to a relay and use Arduino to monitor the sensor’s state.
Tutorial: How to Use Normally Open Magnetic Reed Sensor
The magnetic reed sensor is a very useful electronic component for detecting the presence of a magnetic field. It is ideal for projects such as automatic doors, home alarms, or any situation where it is necessary to detect the opening or closing of a door.
What you need
- Arduino
- Breadboard
- Connection between Arduino and breadboard
- Magnetic field (small magnets)
Steps
- Connect the pins of the reed sensor to the breadboard.
- Connect the +5V of Arduino to a positive bus on the breadboard.
- Connect the ground (GND) of Arduino to a negative bus on the breadboard.
- Connect the interface end of the reed sensor to digital pin 2 on Arduino.
- Check that the sensor is connected correctly by observing the Arduino LEDs.
- Bring a small magnet close to the sensor and observe the reaction.
Example code
const int bottone = 2;
void setup() {
pinMode(bottone, INPUT);
}
void loop() {
if (digitalRead(bottone) == HIGH) {
Serial.println("Magneti vicino al sensore");
}
}
Mini project
Create a simple alarm system that sends a notification when the door is opened. Connect the reed sensor to a relay and use Arduino to monitor the sensor’s state and activate the alarm.
Common mistakes
- Connecting the sensor to the wrong pin
- Not verifying connections correctly before starting
- Placing the magnetic field too far from the sensor
Recommended accessories
- Relay Module (SKU: ARD01234)
- Piezo Buzzer (SKU: ARD05678)
- RGB LED (SKU: ARD09101)
Frequently asked questions
How can I test the reed sensor?
Connect it to a digital pin on Arduino and use Serial Monitor to see its response when you bring a magnet close or move it away.
How far can the magnet be from the sensor?
The distance varies, but it is generally around 1-2 cm. Check the product datasheet for precise details.







Reviews
There are no reviews yet.