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

// Write to the configuration when we receive new parameters
void processSetCommands()
{
  if (net.assertCommandStarts((char*)pgm_read_word(&(str_setAlertBatteryVoltage)), buf)) {
    unsigned int tmp = strtol(buf, NULL, 10);
    if (tmp > 9000 && tmp < 15000) {
      conf.alertBatteryVoltage = tmp;
      saveConfig();
      net.sendResponse((char*)pgm_read_word(&(str_OK)));
    } else {
      net.sendResponse((char*)pgm_read_word(&(str_ERROR)));
    }
  } else if (net.assertCommandStarts((char*)pgm_read_word(&(str_setAlertWaterLevel)), buf)) {
    int tmp = strtol(buf, NULL, 10);
    if (tmp > -100 && tmp < 100) {
      conf.alertWaterLevel = tmp;
      saveConfig();
      net.sendResponse((char*)pgm_read_word(&(str_OK)));
    } else {
      net.sendResponse((char*)pgm_read_word(&(str_ERROR)));
    }
  } else if (net.assertCommandStarts((char*)pgm_read_word(&(str_setBaudRate)), buf)) {
    long tmp = strtol(buf, NULL, 10);
    // Supported: 9600, 14400, 19200, 28800, 38400, 57600, or 115200
    if (tmp == 9600 ||

  // Check if AC pump was on for too long
  if (currentlyOn) {
    if ((now() - acpump.switchOnTime) > conf.acPumpOnTimeWarning) {
      raiseAlert(AcPumpOverload, ("AC pump ON for too long"));
    }
  }
  
