---
title: "How to use Infrared Proximity Sensor with Arduino using C plus plus  code??"  
description: "How to use Infrared Proximity Sensor with Arduino using C plus plus  code??"  
author: "Arduino Man"  
published: 2016-03-07  
updated: 2016-03-07  
canonical: https://www.mindstick.com/forum/34037/how-to-use-infrared-proximity-sensor-with-arduino-using-c-plus-plus-code  
category: "visual c++"  
tags: ["windows 7"]  
reading_time: 1 minute  

---

# How to use Infrared Proximity Sensor with Arduino using C plus plus  code??

### //Arduino Works

**[Introduction](https://www.mindstick.com/articles/13122/an-introduction-to-network-cables):** As we Know infrared is a electromagnetic radiation having a [wavelength](https://answers.mindstick.com/qa/94125/which-is-the-first-indian-multi-wavelength-space-telescope) just greater than that of the red end of the visible light [spectrum](https://yourviews.mindstick.com/audio/1049/autism-spectrum-disorder) but less than that of microwaves. Infrared radiation has a wavelength from about 800 nm to 1 mm, and is emitted particularly by heated [objects](https://www.mindstick.com/forum/145447/what-are-objects). And a Infared **proximity sensor** is an electronic **sensor** capable of detecting the [presence](https://www.mindstick.com/articles/12492/how-to-enhance-your-presence-on-facebook) of nearby objects without [physical](https://yourviews.mindstick.com/view/82619/leave-digital-live-physical) contact. It emits an electromagnetic field or a beam of electromagnetic radiation (for example: **infrared**) and then looks for changes in the return signal or field.\

When anything comes in the range of Proximity sensor it flash out infrared beam and monitors reflections. When sensor senses reflections it confirms that there’s an object nearby. Learn more about infrared proximity sensor [here](https://en.wikipedia.org/wiki/Proximity_sensor).

**[Components](https://www.mindstick.com/blog/74096/understanding-the-role-of-some-integral-ac-components):**

- Infrared Proximity Sensor
- [Arduino](https://www.mindstick.com/articles/11999/arduino-with-4-digit-7-segment-led-display) UNO
- LED
- Jumper Cable

Find code and [circuit](https://www.mindstick.com/forum/162028/what-is-circuit-breakers) here......http://arduinoworks.com/infrared-proximity-sensor-with-arduino/\


---

Original Source: https://www.mindstick.com/forum/34037/how-to-use-infrared-proximity-sensor-with-arduino-using-c-plus-plus-code

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
