 //  int difference = finish_time - start_time;
 //  Serial.println(difference);
   
-}
+}

#include <Statistic.h>
Statistic myStats;
//long double initialReading = 0;
int sourceSensePin = A0;    // select the input pin for the potentiometer
int drainSensePin = A1;
double sourceSense = 0;
double drainSense = 0;
double sensor = 0;
int numberOfReadings = 400;
unsigned int ADCValue;
double Vcc;
double result;
double averagedOutput;

double array[99];


long readVcc() {
  long result;
  // Read 1.1V reference against AVcc
  ADMUX = _BV(REFS0) | _BV(MUX3) | _BV(MUX2) | _BV(MUX1);
  delay(2); // Wait for Vref to settle

  drainSense = (drainSense / 1024.0) * Vcc;

  sensor = sourceSense - drainSense;
  
  return sensor;
}

void setup() { 
