Wrong analogRead values

AWOL:

The input to the arduino is 0 to 5volts ac I dont understand why you think its dc.

Because your scope trace clearly shows everything above 0V.
Alternating current implies a current reversal.

At first the code was working really well. All I was doing was changing the delay to get different sample rates. Please see below