Skip to content

CheckDistance.ino

Arnd edited this page Dec 25, 2020 · 2 revisions

Arduino sketch to read and display measurements from the Vishay VCNL4010 sensor.

Compatibility

No special processor-dependent calls are used and thus this sketch should run on any of the Arduino systems. The serial port speed defaults to 115200 baud.

Function

The VCNL4010 is initialised in the setup() method and when the proximity sensor value changes with more than a 15% difference the new values are displayed.

Clone this wiki locally