Read analog pin

You can not just attach an input at one point you must also have a common ground. If you do not you get results like you have been getting.

And the schematic is attach, but I don't know how do you want a schematic so I made this.

You get a pencil and paper and draw one, then photograph it and attach it.