   if (ACAC) 
   {
     Serial.println("ACAC found");
-    for (int i=0; i<10; i++)                                              // indicate AC has been detected by flashing LED 10 times
+    // indicate AC has been detected by flashing LED 10 times
+    for (int i=0; i<10; i++)
     { 
       digitalWrite(LEDpin, HIGH); delay(200);
       digitalWrite(LEDpin, LOW); delay(300);

  unsigned long sum = 0;
  for (int i=0; i<samples; i++) // 178 samples takes about 20ms
  {
    int raw = (analogRead(0)-512);
    sum += (unsigned long)raw * raw;
  }
  double rms = sqrt((double)sum / samples);

#define emonTxV3                                                                   // Tell emonLib this is the emonTx V3 - don't read Vcc assume Vcc = 3.3V as is always the case on emonTx V3 eliminates bandgap error and need for calibration http://harizanov.com/2013/09/thoughts-on-avr-adc-accuracy/
#define RF69_COMPAT 1                                                              // Set to 1 if using RFM69CW or 0 is using RFM12B

#include <JeeLib.h>                                                                //https://github.com/jcw/jeelib - Tested with JeeLib 3/11/14
ISR(WDT_vect) { Sleepy::watchdogEvent(); }                                         // Attached JeeLib sleep function to Atmega328 watchdog -enables MCU to be put into sleep mode inbetween readings to reduce power consumption 

#include "EmonLib.h"                                                               // Include EmonLib energy monitoring library https://github.com/openenergymonitor/EmonLib
EnergyMonitor ct1, ct2, ct3, ct4;       

#include <OneWire.h>                                                               // http://www.pjrc.com/teensy/td_libs_OneWire.html

// All CTs are considered as enabled
const byte version = 10;
