Abstract: An electronic circuit for automatically compensating for errors in the output signal of a displacement sensor. The electronic circuitry includes an analog to digital converter for converting an analog output signal from a linear displacement type sensor. The digital output signal from the sensor is processed by a microcontroller which automatically compensates for errors in the output signal. Ideal values, stored in an electronic memory, are used for compensation.