 
 void smooth()                                           // Averages photocell readings
 {
-    total = total - readings[index];                    // subtract the last reading
-    readings[index] = analogRead(photoCellIn);          // read from the sensor
-    total = total + readings[index];                    // add the reading to the total
-    index = index + 1;                                  // advance to next position in array
-    if (index >= numReadings) index = 0;                // if we're at the end of the array...
-    average = total / numReadings;
-
-    autoBrightAverage = average;
-
-    delay(1);                                           // stability delay in between reads 
+  total = total - readings[index];                    // subtract the last reading
+  readings[index] = analogRead(photoCellIn);          // read from the sensor
+  total = total + readings[index];                    // add the reading to the total
+  index = index + 1;                                  // advance to next position in array
+  if (index >= numReadings) index = 0;                // if we're at the end of the array...
+  average = total / numReadings;
+
+  autoBrightAverage = average;
+
+  delay(1);                                           // stability delay in between reads
 }
 
 
 void adjustBrightness()                                          // Brightness Check & Adjust
 {
-  smooth();                                                      
+  smooth();
 
   int clockKnob = analogRead(clockLightIn);                      // Check & Map Potentiometers/Photocell
   int clockBrightness = map(clockKnob, 0, 1023, 2, 15);

  int autoBright1 = map(autoBrightAverage, 390, 1000, 2, 15);
  int autoBright2 = map(autoBrightAverage, 390, 1000, 50, 255);

  Serial.println(autoBrightAverage);
  
  autoBrightState = digitalRead(brightSwitchIn);                 // Automatically Adjust Brightness (if Switched ON)
  if (autoBrightState == 1)
  {

  }
}

