Introduction: Door Close Reminder

This is the machine behind the door. When you open the door, it makes a sound to remind you to remember to close the door.

Supplies

Arduino Leonardo board

wires

speaker

Ultrasonic sensor

Step 1: Code

write the program

https://create.arduino.cc/editor/bolunchang/5a829a89-4606-4f84-b139-a51b637ffca0/preview

Step 2: Arduino Leonardo

Plug in all wires, install speaker and Ultrasonic sensor

Step 3: Finish