#include "EmonLib.h" // Include Emon Library EnergyMonitor emon1; // Create an instance //The power up or reset causing false current-on problems. //Tried to delay so sensor would settle out but not working. void setup() { Serial.begin(115200); delay(1000); emon1.current(A0, 111.1);// Current: input pin, cal } void loop() { delay(1000); double Irms = emon1.calcIrms(1480); // Calculate Irms only if (Irms < .2) { Serial.println("No Current"); Serial.println(Irms); } else if (Irms >= 1.2) { Serial.println("Current ON"); Serial.println(Irms); } else { Serial.println("Transtion between on and off or visa versa"); } }