Arduino voltmeter using LCD

Applying 9v to A0? Did I understand that correctly?
5v is absolute max.

To debug your code, first make the LCD display some things. Then add the fancy stuff.