 unsigned long lastrun = millis();
 int state = 0;
 //#define PERIOD 5*60*1000
-#define PERIOD 15*1000
+#define PERIOD 30*1000
 
 bool bme_status;
 

void sendbme(char* topic) {
  float temperature = 0;
  float humidity = 0;
  size_t len = strlen(topic);
    Serial.print("BME status ");
   Serial.println(bme_status);

  if (bme_status) {
    strcpy(topicbuffer,topic);

  mqtt.setServer(broker, 1883);
  mqtt.setCallback(mqttCallback);

  //  bme_status = bme.begin();
  //  Watchdog.reset();
}

