     previousMillis = currentMillis;
 
     tone(piezoOut, note, duration);                          //Play tone on buzzerPin
-    if (counter % 2 == 0)                                    // Alternate Green then UV LED's
+    if (noteCounter % 2 == 0)                                // Alternate Green then UV LED's
     {
       digitalWrite(fourTwentyLED, HIGH);
       delay(duration);

  adjustBrightness();                    // Check Switch & Adjust brightness
  fourTwentyCheck();                     // Check if 4:20pm & Run Alarm
  reminderSwitch();                      // LED / Reminder
}

// ================================================================================== //
//                             *** CLOCK FUNCTIONS ***
// ================================================================================== //


int getDecimalTime()                                    // Calculate and Adjust Hours
{
  DateTime now = RTC.now();
  int decimalTime = now.hour() * 100 + now.minute();

  dstState = digitalRead(dstSwitchIn);                  // Check DST Switch
  if (dstState == 1) decimalTime += 100;                // + / - 1 Hour via Button
  if ((decimalTime > 1159) && !(decimalTime < 1259)) decimalTime -= 1200;

  return decimalTime;

int nightLightIn =      A2;      // Backlight
int clockLightIn =      A3;      // 7-Sebment
int neoPixel =          3;       // RGB-LED: Green
int dstLightOut =       5;       // Small LED indicating day light savings
int reminderSwitchIn =  6;       // Switch: Reminder
int uvLED =             7;       // LEDs: UV
int fourTwentyLED =     9;       // LED: Green
int piezoOut =          10;      // Speaker
int nightLightOut =     11;      // LED: Backlight
int brightSwitchIn =    12;      // Switch: Auto Brightness
int dstSwitchIn =       13;      // Switch: Savings Time

// Variables
int dstState = 0;                    // DST
int reminderState;               // Switch (Reminder)
int autoBrightState;             // Switch (Auto-Dimmer)
int photoCellRead;               // Photo Cell
int autoBrightAverage;           // Photo Cell
long previousMillis;             // Timer
int noteCounter;                 // Counts theme music notes
int neoBrightness =      100;    // Neopixel Shield
boolean running =        false;  // Colon ON/OFF
  int buttonPushCounter = 0;   // counter for the number of button presses
  int lastButtonState = 0;     // previous state of the button

// Smoothing Variables:
const int numReadings =  12;      // Number of readings to use (speeds/slows)
int readings[numReadings];        // Readings from the analog input
int index = 0;                    // Index of the current reading
int total = 0;                    // Running total
int average = 0;                  // Final average

// Setup Components
RTC_DS1307 RTC;
