 int redOutput = 0;
 int greenOutput = 0;
 int blueOutput = 0;
+
+int maxSensorValue = 0;
+int minSensorValue = 1025;
+
+long lastCalibrationTime = 0L;
+long calibrationFrequency = secondsToMillis(60);
+long calibrationTime = secondsToMillis(5);
 
 void setup() 
 {

          RED_LIGHT_COMPONENT, 
          BLUE_LIGHT_COMPONENT,
          GREEN_LIGHT_COMPONENT);
}

void loop() 
{
  redInput = analogRead(RED_SENSOR);
  greenInput = analogRead(GREEN_SENSOR);
  blueInput = analogRead(BLUE_SENSOR);

  String message = "";
  message = message + "Red: " + redInput;
  message = message + ", Green: " + greenInput;
  message = message + ", Blue: " + blueInput;
  Serial.println(message);

  redOutput = map(redInput, 0, 1023, 0, 255);
  blueOutput = map(blueInput, 0, 1023, 0, 255);
  greenOutput = map(greenInput, 0, 1023, 0, 255);
 
  message = "";
  message = message + "Red Output: " + redOutput;
  message = message + " Green Output: " + greenOutput;
  message = message + " Blue Output: " + blueOutput;
  Serial.println(message);

  analogWrite(RED_LIGHT_COMPONENT, redOutput);
  analogWrite(GREEN_LIGHT_COMPONENT, greenOutput);
  analogWrite(BLUE_LIGHT_COMPONENT, blueOutput);
  
  delay(500);
}

void setOutput(int count, ...)

  
  va_end(pins);
}

int _min(int count, ...)
{

  if (count == 0)
  {
    return 0;
  }
  
  va_list values;
  va_start(values, count);
  
  int min = va_arg(values, int);
  
  for (int i = 1; i < count; ++i)
  {
      int nextValue = va_arg(values, int);

      if (nextValue < min)
      {
        min = nextValue;
      }
  }

  va_end(values);
  
  return min;
}

void printBreak()
{
  Serial.println("\n=================================================\n");
}

