 void loop() {
   // The first argument here controls the "charging time".  
   // Increase the number, get a larger signal (but lose a bit of brightness).
-  rawSenseResults = senseAll(1700, true);
+  rawSenseResults = senseAll(1700, false);
   
-//  Serial.println(signalBuffer);
+  Serial.println(signalBuffer);
   int measurement = getProcessedSense(1); 
   if (measurement < low_threshold) { 
     dutyCycle_us = 0;

}


int low_threshold = 100;
int mid_threshold = 250;
int midDutyCycle_us = 3000;
int high_threshold = 340;

int period_us = 5000;
// This temporary variable keeps track of the time on (in microseconds) 
int dutyCycle_us = 0;


    Serial.println(frac);
  }

//  Serial.println(dutyCycle_us);

  // PWM code (like in example 1)
  switchOutputs(glow);
  delayMicroseconds(dutyCycle_us);
