To use the output signal of the sensor as a measure of distance one has calibrate the sensor. This is shown in Fig. 2 in which the output signal is plotted as a function of the distance. The equation chosen to convert the output of the sensor in distance is given by: