       
   if (range.distance > conf.alertWaterLevel) {
     char tmp[40];
-    sprintf(tmp, PSTR("Water level: %d"), range.distance);
+    sprintf(tmp, ("Water level: %d"), range.distance);
     raiseAlert(WaterLevel, tmp);
   }
   return range.distance;

  // If voltage is more than 0, then pump is on, and we need to sound an alert
  // Need to make sure to wait a few seconds after self test to see if DC pump is ON
  if (mv > 9000 && (now() - selftest.lastTestTime) > (conf.selfTestTimeLimit + 6)) {
    raiseAlert(DcPumpActivated, PSTR("DC Pump ON"));
    // Record that the pump is on, or process alert, if it was already on.
    if (!dcpump.currentlyOn) {
      dcpump.currentlyOn = true;
      dcpump.switchOnTime = now();
    } else if ((now() - dcpump.switchOnTime) > conf.dcPumpOnTimeWarning) {
      raiseAlert(DcPumpOverload, PSTR("DC pump ON too long"));
    }
  } else {
    dcpump.currentlyOn = false;

{
  unsigned int mv = getVoltage( BATTERY_VOLTAGE_PIN );
  if (mv < conf.alertBatteryVoltage) {
    raiseAlert(DischargedBattery, ("Battery voltage"));
  }
  return mv;
}
