Voltage measurement on Analog PIN

Hi,
Try setting the pin as an input. Like pinMode(pin,INPUT).