Converted IR ADC values to distance