     digitalWrite(i, level);
     i += i == 9 ? 4 : 1; //Skip the RTC Pins (10, 11, 12).
   }
-}
+}

  isItDayTime = analogRead(5) > 511;
  WriteOutput(!isItDayTime); //Make changes if needed.
}

void WriteOutput(int level)
{

    #endif
}

#ifdef DEBUG
void MeasureTime()
{
  int reading = analogRead(5);
