Arduino as voltimeter

The pin A0 measures by default "5V" / 1024 which might not be what you want, especially if your "5V" is not quite 5.
Read up on changing the range of A0 to 2.56 or 1.1 Volts (could depend on which hardware you are using)
and consider replacing the 100k with a 560k.