Potentiometer code

Created code to convert potentiometer reading to distance in order to
simulate sensor input for distance.