The sensor continuously sends out infrared light and measures how much of that light is reflected. When a reflective object is within its set detection range, it returns a low signal. The Arduino ...
This project demonstrates how to measure distance using a Sharp IR sensor with an Arduino UNO. The sensor will read the distance to an object and print the value to the Serial Monitor. Connect the VCC ...
A minimal example that reads a digital IR (obstacle/proximity) sensor on pin D2 and lights the onboard LED (pin 13) when an object is detected. The project is configured to build with PlatformIO for ...