Overvoltage protection on analog input

the easiest way to protect you MC from over voltage is to use a voltage divider. Figure out the highest possible voltage on you input, then use 2 1% resistors to make a voltage divider, GND--r1--MCinput--r2--input_voltage; for example having max 10V input, then you need to divide by 2, so r1,r2 would be let's say 10k 1%.