[SOLVED] How to read the maximum voltage value from analog input?

Also the same values get displayed even when having the button switched off (i.e no current flowing in the circuit) - Which seems to me very weird.