The software currently seems to take one sample of the A/D. We need to acquire at least one whole period and calculate the rms value.