Updated the voltage to distance calibration function