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

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

void WriteOutput(int level)
{

  {
    timer = millis(); //Keep timer up with millis().
    if (isItAutoMode) CalculateSunTimes(); //Do IT!
    #ifdef DEBUG
    else MeasureTime();
    #endif
  }
}

