problem with multiple analog inputs! buggy arduinos? needs caps?

Here's the problem, the first pot reads fine, I get the values from 0 1023 but the second one always stays at 1023.

That means that the GND of the second pot is not connected well

try to use a new wire between the failing pot and the GND of the arduino.

Note it can be a bad connector in the breadboard!

please use the # button (just above the smileys) to post code with proper tags.