   while( true ) {   
     sensorValue = analogRead(A0);  // read the analog in value:
     inputStats.input(sensorValue);  // log to Stats function
+    sensorValue1 = analogRead(A1);  // read the analog in value:
         
     if((unsigned long)(millis() - previousMillis) >= printPeriod) {
       previousMillis = millis();   // update time

      if (inputStats.sigma() < 5){
        current_amps = 0;
      }
      idea = 100 * (current_amps); 
      Serial.println( idea );
    }
  }
}

#include <Filters.h>
int idea = 0; 
int idea2 = 0; 
float testFrequency = 60;                     // test signal frequency (Hz)
float windowLength = 20.0/testFrequency;     // how long to average the signal, for statistist
int sensorValue = 0;
int sensorValue1 = 0;
float intercept = 0.0257; // to be adjusted based on calibration testing
float slope = 0.0312; // to be adjusted based on calibration testing
float current_amps; // estimated actual current in amps
float current_amps1; // estimated actual current in amps

unsigned long printPeriod = 1000; // in milliseconds
// Track time in milliseconds since last reading 
