 
 #define MAX_CLIENT_RETRIES 10
 
-uint16_t proxim_nominal = 2000;
-uint16_t proxim_anomaly = 100;
+uint16_t proxim_nominal = 1960;
+uint16_t proxim_anomaly = 160;
 uint16_t event_count = 0;
 
 uint16_t proxim_samples[NB_PROXIM_SAMPLES];

    } else {
      Serial.print("failed, rc=");
      Serial.print(mqttClient.state());
      Serial.println(" try again in 5 seconds");
      // Wait 5 seconds before retrying
      delay(5000);
    }
  }
  if ( nbtry == MAX_CLIENT_RETRIES ) {
    Serial.println("Give up on mqtt client connect!");
    Serial.println("It would be a good time to reboot the board now...");
    // system_restart();
  }
  return connected;
}

  mqttClient.loop();

  delay(10);
}

