I'm having some problems with analog input. I'm using an Arduino Mega2560 and I had working a temperature controller with an LM35 sensor. The analog input A0 was working properly, but now without nothing connected to the arduino board, I have 4.6V in A0, and the temperature controller is reading this value instead the value offered by the sensor.
Any idea?, I used a 19V power source for the board and peltier module. The A1 pin has 3.6V and the others seems to be ok you can mesure 0.xV.
I've supplied with +5V coming from arduino board. I know that the recommened suply is 12V, but it supposed that arduino can manage until 20V.
Well it might manage, but with any extra load from modules powered from the 5V regulator on the Arduino it could push the regulator power consumption over the edge - normally voltage regulators shutdown if they overheat, so you will risk reliability.
I obtain the same 4.6V if a connect the LM35. BTW A0 has 4.6V, A1 has 3.0V and A2,3,4,5... and so on have 0V in "floating connection"
If floating inputs are reading a steady 0, they are either pulled-down to ground or damaged - a CMOS input that's floating really will float!
One last possibility - you aren't accidentally causing the analog pins to be OUTPUTs or enabling their internal pull-ups?
You mentioned 19V earlier - that will instantly fry any inputs on a 5V logic chip, so you really really need to be careful wiring things up. Another reason for not running Vin at such a high voltage.