- Home Page /
- Electronics /
- Computer Accessories /
- Computer Components /
- Single Board Computers /
- 4pcs Door Sensor Magnetic Switch for Arduino,...
4pcs Door Sensor Magnetic Switch for Arduino, ESP32, ESP8266, Raspberry Pi
GBP 12
Price Details
Excluding Shipping & Custom charges ( Shipping and custom charges will be calculated on checkout )
*All items will import from US
QTY:
Ubuy works hard to protect your security and privacy. Our advanced payment security system ensures confidentiality by encrypting your information during transmission using AES (Advanced Encryption Standards) and SSL (Secure Socket Layer) protocols. Your payment details are 100% secure as we do not share your payment details with third party sellers.
Perfect for home security and automation systems.
Fast
Shipping
Free
Return*
Secure Packaging
100% Original Products
PCI DSS Compliance
ISO 27001 Certified
What Stands Out
Product Details
- 4 x sets of MC-38 Wired Door Sensor Magnetic Switch
- Removable adhesive paper on the back => easy to stick on the flat surfaces
- Works with Arduino, ESP32, ESP8266, Raspberry Pi, or any kinds of microcontroller
- Used to detect door/window open or closed
- Tutorials for Arduino and ESP32 are provided
| Power Source | Hardwired Electric |
| Mounting Type | Wall Mount |
| Battery Description | battery not included |
| Compatible Devices | Arduino, ESP32, ESP8266, Raspberry Pi |
| Antenna Location | Door/window monitoring, home security, intrusion detection |
| Item Weight | 0.04 Kilograms |
| Color | White |
| Brand | DIYables |
| Manufacturer | DIYables |
| Mfr Part Number | DIY-DOOR-SENSOR-4 |
| Model Number | DIY-DOOR-SENSOR-4 |
Who Should Buy?
-
Home Automation Enthusiasts
Ideal for those looking to enhance their smart home systems by integrating door sensors.
-
DIY Project Builders
Perfect for hobbyists creating custom security systems or automation tasks with Arduino and Raspberry Pi.
-
Students Learning IoT
Great for learners wanting hands-on experience with sensors and microcontroller programming in their projects.
-
Commercial Applications
Not suitable for businesses requiring robust, high-durability sensor solutions for critical operations.
-
Outdoor Installations
Designed primarily for indoor use; may not withstand adverse weather conditions effectively.
-
Beginners Without Support
May be challenging for novices without prior experience in electronics or programming to implement effectively.
Product Description
Customer Questions & Answers
-
Question:
What is a Door Sensor Magnetic Switch?
Answer: A Door Sensor Magnetic Switch is a device that detects the opening and closing of doors or windows by using magnetic fields. When the door or window is closed, the magnet is aligned with the sensor, completing the circuit. When opened, the magnet moves away, triggering the sensor. This can be utilized in home automation systems to enhance security or automate tasks like turning on lights when a door is opened. -
Question:
How do I connect the Door Sensor Magnetic Switch to my Arduino?
Answer: To connect the Door Sensor Magnetic Switch to your Arduino, you will need to connect the sensor's output terminal to one of the digital input pins of the Arduino. Additionally, connect the other terminal of the sensor to the ground. This setup allows the Arduino to read the state of the sensor (open or close). Once connected, programming the Arduino to respond to changes in the sensor state can enable alerts, notifications, or other automated functions. -
Question:
Can I use the Door Sensor with ESP32 or ESP8266?
Answer: Yes, the Door Sensor Magnetic Switch is compatible with both ESP32 and ESP8266 boards. The setup process is similar to that of an Arduino. You will connect one terminal of the sensor to a digital GPIO pin and the other to ground. You can then program your ESP board to handle the signal changes, making it ideal for IoT applications where you want to monitor door states remotely. -
Question:
What are typical use cases for the Door Sensor Magnetic Switch?
Answer: The Door Sensor Magnetic Switch can be used in various applications such as home security systems, automation for smart home setups, or as part of a DIY project. For example, it can send notifications to your smartphone when a door is opened unexpectedly or trigger an alarm. Additionally, it can be employed in robotics projects, where the robot needs to detect door states for navigation. -
Question:
Is the Door Sensor compatible with Raspberry Pi?
Answer: Yes, the Door Sensor Magnetic Switch works seamlessly with Raspberry Pi. To connect it, attach one wire to a GPIO pin on the Raspberry Pi and the other to a ground pin. This allows the Pi to read when the door opens or closes. You can create Python scripts to handle actions based on sensor status, which can enhance your home automation projects or security systems. -
Question:
How do I troubleshoot if the Door Sensor is not working?
Answer: If the Door Sensor Magnetic Switch is not functioning, first check the connections to ensure they are secure. Next, confirm that there’s proper alignment between the magnet and sensor when the door is closed. Testing the sensor with a multimeter can help identify if it is working correctly. If issues persist, examine your code or setup in the microcontroller to ensure proper logic for detecting the sensor state. -
Question:
What voltage does the Door Sensor Magnetic Switch operate on?
Answer: The Door Sensor Magnetic Switch typically operates at 3.3V to 5V, making it compatible with most microcontroller projects, including Arduino, ESP, and Raspberry Pi. This voltage range allows for flexibility in various electronic and IoT projects where power sourcing may alter based on the system architecture. -
Question:
Can I use multiple Door Sensors with one microcontroller?
Answer: Absolutely! You can connect multiple Door Sensor Magnetic Switches to a single microcontroller by using different GPIO pins for each sensor. This configuration allows you to monitor multiple doors or windows simultaneously. Make sure to keep track of which GPIO pins are associated with which sensors in your code to respond effectively to any triggered signals. -
Question:
Do I need additional components to use the Door Sensor?
Answer: In most cases, no additional components are required to use the Door Sensor Magnetic Switch. However, depending on your project, you might want to add resistors if you're using the sensor in certain configurations. Always refer to your microcontroller’s specifications, as integrating with other components may require adjustments based on your specific design and requirements. -
Question:
Where can I buy 4pcs Door Sensor Magnetic Switch for Arduino, ESP32, ESP8266, Raspberry Pi?
Answer: You can purchase the 4pcs Door Sensor Magnetic Switch for Arduino, ESP32, ESP8266, Raspberry Pi on Ubuy in Jersey. Ubuy offers a variety of electronics and components, making it a reliable source for your DIY project needs.
DIYables Single Board Computers DIY-DOOR-SENSOR-4 Editorial Review
The 4pcs Door Sensor Magnetic Switch set has garnered mixed feedback from customers who have implemented it into their DIY electronics projects, specifically with platforms like Arduino, ESP32, and ESP8266. Users have noted that these sensors tend to perform well in scenarios involving home security and automation setups. They have reported positive experiences with the sensors' sensitivity and functionality, indicating that the input response changes effectively when the magnet is moved away from the switch. However, not all reviews have been as favorable. A significant concern raised by some users is the inConsistency in the quality of the sensors, with reports that about half of the devices in a package may fail to open correctly after the magnet is removed, leading some to label these as "junk." Additionally, while the adhesive backing is convenient, it's viewed as subpar by at least one customer who opted for higher-quality alternatives. Users noted that while there are no mounting screws included, the necessary holes for screws are present, which suggests valuable foresight in the design. In summary, the product offers a promising solution for those engaging in custom electronics projects, particularly for security applications, but potential buyers should be aware of varying sensor reliability and may need to make adjustments in terms of mounting methods. **
Customer Reviews & Ratings
-
5 Star
67%
-
4 Star
10%
-
3 Star
11%
-
2 Star
7%
-
1 Star
5%
Review this product
Share your thoughts with other customers
Pros
- Effective for DIY projects involving Arduino, ESP32, and similar platforms.
- Positive feedback regarding sensor sensitivity and functionality.
- Adequate wire length for installation purposes.
Cons
- Quality inConsistency, with some sensors failing to operate properly.
Product Price History
Important information
- Limitations : For products shipped internationally, please note that any manufacturer warranty may not be valid; manufacturer service options may not be available; product manuals, instructions, and safety warnings may not be in destination country languages; the products (and accompanying materials) may not be designed in accordance with destination country standards, specifications, and labeling requirements; and the products may not conform to destination country voltage and other electrical standards (requiring use of an adapter or converter if appropriate). The recipient is responsible for assuring that the product can be lawfully imported to the destination country. When ordering from Ubuy or its affiliates, the recipient is the importer of record and must comply with all laws and regulations of the destination country.
- Not all the products listed on Ubuy are for sale, as Ubuy is a global search engine. Products are subject to export/trade regulations.
GBP 12
Order now and get it around Thursday, June 25
This item is not restrict in my country.(Please click on above link if this item is not restrict in your country, So our team will review and allow.)
QTY:
Ubuy works hard to protect your security and privacy. Our advanced payment security system ensures confidentiality by encrypting your information during transmission using AES (Advanced Encryption Standards) and SSL (Secure Socket Layer) protocols. Your payment details are 100% secure as we do not share your payment details with third party sellers.
Features & Benefits
- Includes 2 sets of MC-38 magnetic contact sensors.
- Easy installation with pre-applied double-sided tape.
- Normally closed design for reliable monitoring.
- Compatible with Arduino, ESP32, ESP8266, and Raspberry Pi.
- Ideal for enhancing home security.
- Access to helpful tutorials for DIY projects.






