The Implementation of a Smart Sensor Based on a Piece-linear A/D Converter