   lcd.backlight();
   lcd.clear();
 
+  WiFiClient::setLocalPortStart(analogRead(A0));
   wifi_connect();
 
   //

  Wire.endTransmission();
}

/*
void senddustDensity()
{
  payload = " {\"dustDensity\":";
  payload += dustDensity;
  payload += ",\"FreeHeap\":";
  payload += ESP.getFreeHeap();
  payload += ",\"RSSI\":";
  payload += WiFi.RSSI();
  payload += ",\"millis\":";
  payload += (millis() - startMills);
  payload += "}";
  //  if ( dustDensity < 0.6 )
  //  {
  sendmqttMsg(payload);
  //  }
}
*/

void sendmqttMsg(String payloadtosend)
{
  if (client.connected()) {

  delay(20);

  //--
  H = T1 =  T2 =  OT = PW = NW =  dustDensity = -1000 ;
  PIR = HO = HL = moisture = unihost = rsphost = unitot = rsptot = 0;
  
  OLD_H  = OLD_T1 = OLD_T2 = OLD_OT = OLD_PW = OLD_NW = OLD_dustDensity = -1000 ;
  OLD_PIR = OLD_HO = OLD_HL = OLD_x = 0 ;

  lastReconnectAttempt = resetCountforMqttReconnect = 0;

  getResetInfo = "hello from ESP8266 s03 ";
  getResetInfo += ESP.getResetInfo().substring(0, 30);
