voltage sensor unstable in my code

I've been having a quite a similar problem with a Pro-mini. It had to do with the sensor output impedance, (and affected the other analog channels too).

I recommend:

  1. Grounding all the unusued analog channels.
  2. Using, if possible (band-width), a 4.7 kOhm - 100 nF cap RC filter in the working analog channels.
  3. Use sensors with less than 5 kOhm output impedance (Voltage dividers are dangerous if Thevenin equivalent does not comply).
  4. Double check the "analogRead" (two succesive readings will do).

Good luck!

Regards