          "password" // PWD
          }; 
 
-long lastConnectionRetry = 0;
-int CONN_RETRY_DELAY = 1000;  // 1 minute
-
-long lastSensorCheck = 0;
+unsigned long lastConnectionRetry = 0;
+int CONN_RETRY_DELAY = 1000;
+
+unsigned long lastSensorCheck = 0;
 long SENSOR_CHECK_RATE = 300000; // 5 minutes
 
-long lastConnectionCheck = 0;
-long CONN_CHECK_RATE = 300000; // 5 minutes
-
-long lastSensorDataUpdate = 0;
-long SENSOR_DATA_UPDATE = 1200000; // 20 minutes
+unsigned long lastConnectionCheck = 0;
+long CONN_CHECK_RATE = 300000; // 5 minutes 300000
+
+unsigned long lastSensorDataUpdate = 0;
+long SENSOR_DATA_UPDATE = 1200000; // 20 min
 
 byte OUT_CONN_ID = 0;
 

    value = TEMP_ALARM_ID;
  }

  if(data->humidity >= HUM_H_BOUND || data-> humidity <= HUM_L_BOUND ){
    value += HUM_ALARM_ID;
  }


  clearSerialBuffer();
   
  swSerial.println(command); 
  unsigned long time = millis();
 
  if(debug){
    while(time + timeout > millis()){
