Analog Value not updating?

That is not your code, as it is not a complete program.

Please read the "How to use this forum" post and follow the directions.