 
   //Sends the initial pin state to the Wiegand library
   pinStateChanged();
+  delay_8s.start(8000, AsyncDelay::MILLIS);
+  delay_10s.start(10000, AsyncDelay::MILLIS);
 }
 
 void reconnect() {

  }
  Serial.println(); // See more at: http://www.esp8266.com/viewtopic.php?f=29&t=8746#sthash.73Btjb9a.dpuf
  Serial.println((char)payload[0]);
  if (String(topic).equals(DEUR_OPEN_TOPIC)) {
    if ((char)payload[0] == '1') {
      openDoor(topic);
    }

    if ((char)payload[0] == '0') {
      Serial.println("Sesam sluit");
      digitalWrite(DEUR_PIN, HIGH);
    }
  }

DallasTemperature sensors2(&oneWire2);

#define DEUR_OPEN_TOPIC "domogik/in/deur"
bool isNextReadSensors = true;
bool isNextReadSensors2 = false;

// Assign the unique addresses of your 1-Wire temp sensors.
// See the tutorial on how to obtain these addresses:
