Potentiometer as voltage divider

Hi,
From the question i think that you want to give some voltage randomly to the ADC from a 9V-12V supply, so you want to reduce it in the range of 0-5V, so you can use the following circuit, the diode is a 5.1V zener to protect your arduino from over voltage.

1111.PNG