A description or sketch of the circuit would be useful.
The current sensor will produce an AC waveform centered around half its power supply voltage. Do you have an AC-DC converter to convert the AC output of the current sensor to DC for the A/D converter?
The code looks like it will print the last sample at the end of a one second period. I think I see a number of other problems in the code, however, I don't know enough about the various definitions to say for sure.
Cheers,