What Is an IR Proximity Sensor?

Introduction: What Is an IR Proximity Sensor?

About: I like to create new things! I'm very interested in IOT and just Internet Stuff. I am not responsible for any injury or deaths caused by my projects.

So what is an IR proximity sensor? A ir proximity sensor is a sensor that transmits IR light and Receives it when an object is near. How do i make it work? You make it work by connecting to an arduino and adjusting the two potentionometers.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Program the Arduino Board

Download the code Here

This is the code I used:

void setup() {
Serial.begin(9600);

Serial.println("Started"); }

void loop() {

Serial.println(analogRead(A0));

delay(500);

}

Step 2: Connect Your Sensor

The + on the sensor goes to 5v on the arduino, gnd goes to gnd, and out goes to A0, simple really

Now when you hold your hand in front of it the second led should come on and when your lift your hand it will go off.

In the serial port the readings from the sensor were:

1023

1023

1023

1023

10 (when my hand was infront of it)

10

1023

1023

Step 3: Use It

there are so many uses for this: door alarm, window alarm, distance measure, robot stopper, and so much more

Makerspace Contest

Participated in the
Makerspace Contest

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Silly Hats Speed Challenge

      Silly Hats Speed Challenge
    • Arduino Contest 2020

      Arduino Contest 2020

    Discussions