Analog Inputs Progrmming

hi i connected my a0 analog port to 2 vdc. but in other port also getting 0.5v dc, can you help mefind out the reason.
In my project 4 analog input are connected i need to read each channel voltage in division of 1-2v ,2-3v and 4-5v with led outputs.

tonijaaa69:
hi i connected my a0 analog port to 2 vdc. but in other port also getting 0.5v dc,

What other port.

You need to make a pencil drawing showing how everything is connected and post a photo of the drawing.

You need to post your code.
And please use the code button </> so your code looks like this and is easy to copy to a text editor

Without these it is impossible to know what you are talking about.

...R

If you meant other unconnected analog inputs read fractions of a volt when a0 is connected to 2v, that is expected. You have to connect other inputs to something that outputs a voltage if you don't want to see this effect.