Okay, this is the list of the materials we need to build our infrared alarm:
1 Infrared Proximity Sensor
1 Piezo Speaker
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: MAKING THE CONECTIONS
The first thing we have to do is to make all the conections as we see on the picture.
it is important to know which is your sensor, because the connection usually change from one sensor to another
Step 2: CODE
this is the code we will use to run our infrared alarm,
if you want you can change the leds by any other device, but remember that if you do it you have to change the code.
you can download the code in the following link.
to use it you will have to open a new project on Arduino and delete everything, then you will have to copy the code of the alarm.