         }
       #endif
       
-      // TODO: check if this really works this way
       // check if the battery is still good
       #ifdef LOWBAT
         if (digitalRead(lowBatPin == LOW)) digitalWrite(errorLedPin, HIGH);

  const byte lowBatPin      = A2;      // pin on which the Adafruit PowerBoost will indicate a low battery
                                       // this pin will usually be pulled high but when the charger detects 
                                       // a low voltage (under 3.2V) the pin will drop down to 0V (LOW)
  boolean lowBatWarn        = true;    // used to throttle low battery messages to every 5 minutes
#endif



  } // end of tag is present
  
  delay(1000); // throttle the loop for 1 second
  
  // check if the battery is still good
  #ifdef LOWBAT
    if (digitalRead(lowBatPin == LOW)) {
      if ((millis()-lowBatCheckTime > 300000)) {
        digitalWrite(errorLedPin, HIGH);
        issueWarning("BATTERY LOW", "/system00/lowbat01.mp3", true);
        lowBatCheckTime = millis();
      }
    }
  #endif
