All you need is a PIC with ADC. Here are two examples of how to use the ADC .
http://www.rentron.com/PICX2.htm
http://www.rentron.com/serial.htm

If the voltage that you start off with is higher than 5 volts, use a voltage divider to bring it down to 5 and adjust in soft ware.