Continuous Sampling with AC Loss detection, kwhtotal accumulation and saving to EEPROM, thanks to Robin investigating adding AC Detection to his continuous sampling code