Introduction: What Is an IR Proximity Sensor?

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.

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

Comments

About This Instructable

1,074views

20favorites

License:

Bio: 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 ... More »
More by Funguypro:3D Print Your House!!!!!DIY Raspberry Pi Indoor Outdoor WebcamSee Through Buildings With a Drone
Add instructable to: