sensor reading to distance conversion made