Code above will run the sensor if it is wired correctly
Code below uses the distance to control an LED
In this code snippet we have the distance sensor set up on pins 13 and 14
and an LED on pin 3. If the distance is less than 6cm then the LED turns on.
Example using a 6V battery pack and no elecfreaks motorboard