# No-Code IoT Door Alarm with WipperSnapper

## Overview

![](https://cdn-learn.adafruit.com/assets/assets/000/104/565/medium800thumb/adafruit_io_ezgif.com-gif-maker_%289%29.jpg?1631562136)

Always running around and forgetting whether or not you shut your door? Connect your Adafruit Huzzah32 board to the internet so you can always know if you left the door open!&nbsp;

In this project, you'll wire up a reed switch door sensor to a Huzzah32 and then learn how to use Adafruit IO WipperSnapper capability to make a door alarm without any code! WipperSnapper is a really easy way to set up your device to interface with loads of sensors and devices and send it to Adafruit IO. From there, your possibilities are basically endless.

![](https://cdn-learn.adafruit.com/assets/assets/000/104/946/medium800/sensors_Screenshot_from_2021-09-21_14-14-55.png?1633107332)

WipperSnapper is an interface for&nbsp;[Adafruit IO, our incredibly easy-to-use IoT platform](https://learn.adafruit.com/welcome-to-adafruit-io/what-is-adafruit-io), designed to turn any WiFi-capable board into an IoT device without programming a single line of code.&nbsp;

Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.

From there, you can add&nbsp;_components_&nbsp;to your board such as buttons, switches, potentiometers, sensors, and more! Components are&nbsp;_dynamically&nbsp;_added to hardware without the need for re-programming your board.

## Parts
Featured
### Adafruit HUZZAH32 – ESP32 Feather Board

[Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3405)
Aww yeah, it's the Feather you have been waiting for! The **HUZZAH32** is our ESP32-based Feather, made with the official WROOM32 module. We packed everything you love about Feathers: built in USB-to-Serial converter, automatic bootloader reset, Lithium Ion/Polymer charger,...

In Stock
[Buy Now](https://www.adafruit.com/product/3405)
[Related Guides to the Product](https://learn.adafruit.com/products/3405/guides)
![Angled shot of black, rectangular microcontroller.](https://cdn-shop.adafruit.com/640x480/3405-08.jpg)

Featured
### Magnetic contact switch (door sensor)

[Magnetic contact switch (door sensor)](https://www.adafruit.com/product/375)
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...

In Stock
[Buy Now](https://www.adafruit.com/product/375)
[Related Guides to the Product](https://learn.adafruit.com/products/375/guides)
![Top view of magnetic contact switch with three screws.](https://cdn-shop.adafruit.com/640x480/375-01.jpg)

Featured
### 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable

[5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable](https://www.adafruit.com/product/1995)
Our all-in-one 5V 2.5 Amp + MicroUSB cable power adapter is the perfect choice for powering single-board computers like Raspberry Pi, BeagleBone, or anything else that's power-hungry!

This adapter was specifically designed to provide 5.25V, not 5V, but we still call it a 5V USB...

In Stock
[Buy Now](https://www.adafruit.com/product/1995)
[Related Guides to the Product](https://learn.adafruit.com/products/1995/guides)
![MicroUSB power supply with bundled cable and U.S. plugs.](https://cdn-shop.adafruit.com/640x480/1995-02.jpg)

Featured
### Clear Adhesive Squares - 6 pack

[Clear Adhesive Squares - 6 pack](https://www.adafruit.com/product/4813)
 **UGlu Dashes** &nbsp;are perfect for a variety of small projects. These adhesive squares provide a stronger bond to most surfaces and are cleaner and easier to remove&nbsp;without the wait, mess, or hassle.

Adheres to a wide variety of surfaces, including, but not limited...

In Stock
[Buy Now](https://www.adafruit.com/product/4813)
[Related Guides to the Product](https://learn.adafruit.com/products/4813/guides)
![ 6 pack of Clear Adhesive Squares](https://cdn-shop.adafruit.com/640x480/4813-01.jpg)

# No-Code IoT Door Alarm with WipperSnapper

## Wiring & Assembly

The wiring for this project is very simple. With your ESP32 Feather connected to WipperSnapper, unplug it from your computer's USB port and&nbsp;solder one wire from the door switch to `pin #27` and the other wire to the `GND` pin. This reed switch isn't polar, so you can hook either wire up to either pin.

I shortened the wires before attaching them. This isn't necessary, but I found it looked better.

![adafruit_io_door.png](https://cdn-learn.adafruit.com/assets/assets/000/104/561/medium640/adafruit_io_door.png?1631554394)

Now that you've connected them, clip the ends of the pins off from the bottom of the board. This will help your board sit more flush against the doorframe or wall.

![adafruit_io_IMG_0259.jpg](https://cdn-learn.adafruit.com/assets/assets/000/104/443/medium640/adafruit_io_IMG_0259.jpg?1631300418)

Now, put some UGlu dashes where you want to mount the sensor. I found that putting two on the side that has the wires and one to two on the other side, and then another 2 under the Huzzah32 worked best.&nbsp;

![adafruit_io_IMG_0284.png](https://cdn-learn.adafruit.com/assets/assets/000/104/562/medium640/adafruit_io_IMG_0284.png?1631556875)

After attaching the adhesive, stick the three parts to the door. I've found it works better if you put pressure on it for a good 15 or 20 seconds after initially putting it on the door or door frame. Make sure that the two sides of the sensor are close when the door is closed or the sensor will think it's always open.

![adafruit_io_IMG_0285.png](https://cdn-learn.adafruit.com/assets/assets/000/104/594/medium640/adafruit_io_IMG_0285.png?1631636421)

Then, plug your power supply into the wall and into your Huzzah32.

![adafruit_io_ezgif.com-gif-maker_(8).gif](https://cdn-learn.adafruit.com/assets/assets/000/104/564/medium640thumb/adafruit_io_ezgif.com-gif-maker_%288%29.jpg?1631561936)

Now, head back to [the device page](https://io.adafruit.com/wippersnapper) for your Huzzah32 and make sure that the device status says&nbsp; **Online**.

![adafruit_io_Screenshot_from_2021-09-13_15-55-51.png](https://cdn-learn.adafruit.com/assets/assets/000/104/572/medium640/adafruit_io_Screenshot_from_2021-09-13_15-55-51.png?1631563970)

# No-Code IoT Door Alarm with WipperSnapper

## WipperSnapper Setup

Now that you've wired everything up and added your board to WipperSnapper, it's time to set the sensor itself up.

From the device page, click **+ New Component**.

![adafruit_io_Screenshot_from_2021-09-10_15-08-03.png](https://cdn-learn.adafruit.com/assets/assets/000/104/446/medium640/adafruit_io_Screenshot_from_2021-09-10_15-08-03.png?1631301936)

Then, click on the **Reed Switch**.

![adafruit_io_Screenshot_from_2021-09-10_15-08-12.png](https://cdn-learn.adafruit.com/assets/assets/000/104/568/medium640/adafruit_io_Screenshot_from_2021-09-10_15-08-12.png?1631563309)

Call it whatever you want. I chose to call it door, but anything else should work as well. Set **Reed Switch Pin** to D27, make sure that **Specify Pin Pull Direction?&nbsp;** is selected, and set it to&nbsp; **Pull Up.** Also make sure that&nbsp; **Return Interval** is set to&nbsp; **On Change**.

![adafruit_io_Screenshot_from_2021-09-10_15-08-28.png](https://cdn-learn.adafruit.com/assets/assets/000/104/569/medium640/adafruit_io_Screenshot_from_2021-09-10_15-08-28.png?1631563329)

## Project Usage

Now, as you open and close the door, you should see the grey box in the sensor box go from "Open" to "Closed."

![](https://cdn-learn.adafruit.com/assets/assets/000/104/595/medium800thumb/adafruit_io_ezgif.com-gif-maker_%289%29.jpg?1631636707)

![](https://cdn-learn.adafruit.com/assets/assets/000/104/596/medium800thumb/adafruit_io_ezgif.com-gif-maker_%2811%29.jpg?1631638787)

# No-Code IoT Door Alarm with WipperSnapper

## Set up Email on Opening

## Adafruit IO Action Setup

Now, you can set up Adafruit IO to send you an email when the door is opened.

Warning: 

Info: 

First, click the&nbsp; **Create Action** button.

![sensors_Screenshot_2021-09-29_13-28-40.png](https://cdn-learn.adafruit.com/assets/assets/000/104/923/medium640/sensors_Screenshot_2021-09-29_13-28-40.png?1633018253)

Then, from the actions page, click **+ New Action**.

![sensors_Screenshot_2021-09-29_13-04-18.png](https://cdn-learn.adafruit.com/assets/assets/000/104/912/medium640/sensors_Screenshot_2021-09-29_13-04-18.png?1632938444)

Select&nbsp; **Reactive Action**.

![sensors_Screenshot_2021-09-29_13-04-36.png](https://cdn-learn.adafruit.com/assets/assets/000/104/913/medium640/sensors_Screenshot_2021-09-29_13-04-36.png?1632938472)

Click on the&nbsp; **Select Action Feed** dropdown and select the feed for the reed switch. It will be slightly indented and should be directly under the name of your device.

![sensors_Screenshot_2021-09-29_13-07-07.png](https://cdn-learn.adafruit.com/assets/assets/000/104/914/medium640/sensors_Screenshot_2021-09-29_13-07-07.png?1632938497)

Next to&nbsp; **Is** , select **equal to**.

In the&nbsp; **comparison value&nbsp;** text box, put&nbsp; **1**.

Next to **Then** , select **email me (IO+ only)**.

In the final box, select the name of your component, and press create.&nbsp;

![sensors_Screenshot_2021-09-29_13-28-23.png](https://cdn-learn.adafruit.com/assets/assets/000/104/915/medium640/sensors_Screenshot_2021-09-29_13-28-23.png?1632938554)

Now, when you open the door, you should get an email within a second or two like the one in this screenshot.

![sensors_Screenshot_2021-09-29_13-31-23.png](https://cdn-learn.adafruit.com/assets/assets/000/104/916/medium640/sensors_Screenshot_2021-09-29_13-31-23.png?1632938662)

![](https://cdn-learn.adafruit.com/assets/assets/000/104/918/medium800thumb/sensors_ezgif.com-gif-maker_%282%29.jpg?1632939149)


## Guide Products

### Adafruit HUZZAH32 – ESP32 Feather Board

[Adafruit HUZZAH32 – ESP32 Feather Board](https://www.adafruit.com/product/3405)
Aww yeah, it's the Feather you have been waiting for! The **HUZZAH32** is our ESP32-based Feather, made with the official WROOM32 module. We packed everything you love about Feathers: built in USB-to-Serial converter, automatic bootloader reset, Lithium Ion/Polymer charger,...

In Stock
[Buy Now](https://www.adafruit.com/product/3405)
[Related Guides to the Product](https://learn.adafruit.com/products/3405/guides)
### Magnetic contact switch (door sensor)

[Magnetic contact switch (door sensor)](https://www.adafruit.com/product/375)
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...

In Stock
[Buy Now](https://www.adafruit.com/product/375)
[Related Guides to the Product](https://learn.adafruit.com/products/375/guides)
### 5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable

[5V 2.5A Switching Power Supply with 20AWG MicroUSB Cable](https://www.adafruit.com/product/1995)
Our all-in-one 5V 2.5 Amp + MicroUSB cable power adapter is the perfect choice for powering single-board computers like Raspberry Pi, BeagleBone, or anything else that's power-hungry!

This adapter was specifically designed to provide 5.25V, not 5V, but we still call it a 5V USB...

In Stock
[Buy Now](https://www.adafruit.com/product/1995)
[Related Guides to the Product](https://learn.adafruit.com/products/1995/guides)
### Clear Adhesive Squares - 6 pack

[Clear Adhesive Squares - 6 pack](https://www.adafruit.com/product/4813)
 **UGlu Dashes** &nbsp;are perfect for a variety of small projects. These adhesive squares provide a stronger bond to most surfaces and are cleaner and easier to remove&nbsp;without the wait, mess, or hassle.

Adheres to a wide variety of surfaces, including, but not limited...

In Stock
[Buy Now](https://www.adafruit.com/product/4813)
[Related Guides to the Product](https://learn.adafruit.com/products/4813/guides)

## Related Guides

- [Adafruit HUZZAH32 - ESP32 Feather](https://learn.adafruit.com/adafruit-huzzah32-esp32-feather.md)
- [Custom Scrolling Quote Board Matrix Display](https://learn.adafruit.com/aio-quote-board-matrix-display.md)
- [MatrixPortal S3 Flight Proximity Tracker](https://learn.adafruit.com/matrixportal-s3-flight-proximity-tracker.md)
- [Pi Hole Ad Blocker with Pi Zero W](https://learn.adafruit.com/pi-hole-ad-blocker-with-pi-zero-w.md)
- [Feather Freezer Door Alarm](https://learn.adafruit.com/feather-door-alarm.md)
- [Matrix Portal M4 Boxing Interval Timer](https://learn.adafruit.com/matrix-portal-m4-boxing-interval-timer.md)
- [Funhouse Door Alert with Email Notification](https://learn.adafruit.com/funhouse-door-alert-email-notification.md)
- [Adafruit IO Home: Security ](https://learn.adafruit.com/adafruit-io-home-security.md)
- [Clue Coffee Scale](https://learn.adafruit.com/clue-coffee-scale.md)
- [IoT Temperature Logger with Analog Devices ADT7410, Raspberry Pi, and Adafruit IO](https://learn.adafruit.com/iot-temperature-logger-with-python-and-adafruit-io.md)
- [DIY Adaptive Game Controllers](https://learn.adafruit.com/diy-adaptive-game-controllers.md)
- [Pi Hole Ad Detection Display with PiTFT](https://learn.adafruit.com/pi-hole-ad-pitft-tft-detection-display.md)
- [FunHouse Mail Slot Detector](https://learn.adafruit.com/funhouse-mail-slot-detector.md)
- [Digi-Key IoT Studio Mini Smart Home](https://learn.adafruit.com/digikey-iot-studio-smart-home.md)
- [Halloween Countdown Display Matrix](https://learn.adafruit.com/halloween-countdown-display-matrix.md)
- [ABC Soundboards with NeoTrellis](https://learn.adafruit.com/abc-soundboards-with-neotrellis.md)
