 #define C_ATIME TCS34725_INTEGRATIONTIME_101MS //  Color sensor integration time 50ms
 #define C_CYCLES (256-C_ATIME) // Color sensor cycles according to the integration time
 
-#define C_HOLE_CLEAR 256 // The clear value used to determine the hole's arrival
-#define C_SKITTLE_CLEAR 160 // The clear value used to determine the Skittle's arrival
+#define C_HOLE_CLEAR 300 // The clear value used to determine the hole's arrival
 
 #define F_CALIBRATING false // Is calibration in progress
 

    }

     if (c > C_HOLE_CLEAR) {
          // Check if there was enough data to tell the skittle's color
          if(min_clear < C_SKITTLE_CLEAR){
              skittleCount ++;
              Serial.println("A Skittle has been detected!");
              best_color.print();
              best_color.maximize();
              Serial.println("Maximized colors:");
              best_color.print();
              if(F_CALIBRATING){
                __calibrating(best_color.r, best_color.g, best_color.b);
              }
              Serial.println("Diff:");
              C_Color diff = best_color.compare(C_SKITTLE_GREEN);
              diff.print();
              Serial.println( diff.aggregate());

          }
          else{
              // Serial.println("The hole is empty!!");
              // printColors(best_r, best_g, best_b, min_clear);
          }

          // Serial.println("Finish measuring.");
          isColorBeingMeasured = false;

      lastSkittleTime = millis();
      // Serial.println("Start measuring this Skittle's color.");
      isColorBeingMeasured = true;
      min_clear = C_HOLE_CLEAR;
  }
  if(isColorBeingMeasured){
    if(colors.c < min_clear){
