Trying to measure input voltage... Doing something wrong.

..maybe I am missing something but normally I would go with the internal ref source (1.1V or 2.56V) when available..
I would consider Vcc as a ref source as a last option, though. P.