 void configure(String& message) {
   sscanf(message.c_str() + 5, "%d %d %d", &settings.floorLevel, &settings.safeDepth, &settings.warnDepth);
 
-#ifdef DEBUG_ENABLED       
+#if DEBUG_ENABLED       
   Serial.print("Configure floor level ");
   Serial.print(settings.floorLevel);
   Serial.print(" and safe depth ");

          }
        }

        snprintf(message, sizeof(message), "level:%d", cm);
        smartthing.send(message);

        measurements.invalidate();
      }        
    }
    


    if (measurements.valid()) 
    {
      float cm = (float)measurements.average() / US_ROUNDTRIP_CM;
      
#if DEBUG_RAW_ENABLED
      Serial.print("Raw: ");
      Serial.print(cm);

      float diff = lastDistance - cm;

      if (diff >= 0) 
      {
        Serial.print(" +");
      } 
      else
      {
        Serial.print(" ");
      }

      Serial.print(diff);
      
      Serial.print("  :: Last 10 :: ");
      
      for (int i = max(0, measurements.size() - 10); i < measurements.size(); ++i) 
      {
        Serial.print((float)measurements.values()[i] / US_ROUNDTRIP_CM);
        Serial.print(" ");
      }
      
      Serial.println("");
#endif  

      if (abs(lastDistance - cm) > 0) {
        lastDistance = cm;

#if DEBUG_ENABLED       
        Serial.print("Ping: ");
        Serial.print(cm);
        Serial.println("cm");
#endif        

        if (settings.floorLevel > 0 && settings.safeDepth > 0) {
          int depth = settings.floorLevel - (int)cm;

          if (depth <= settings.warnDepth) {
            smartthing.shieldSetLED(0, 4, 0);
