Sample Code Using The Distance Sensor