use an op-amp set up has a devider you can then put upto 20v in and get 0-5v out and for safety tie a 5V zener diode to prevent damage to the pic or just a resistor devider

I personal use op-amp has i can measure up to 60V