Hi,
why don't you use the internal A/D of your microcontroller?