Newbie grounding questions

I've attached a rubbish schematic that i threw together in paint.

Until i added the wire in green, the voltage reading on the arduino pin fluctuated wildly around and made no sense.