 
   //input
   pinMode(WC_DETECT, INPUT);
+  digitalWrite(WC_DETECT,LOW);
   // After setting up the button, setup the Bounce instance :
   debouncerWC.attach(WC_DETECT);
-  debouncerWC.interval(50);
+  debouncerWC.interval(10);
   
 
   //Install listeners and initialize Wiegand reader

  else {
    Serial.println(topic);
    Serial.println(tempC);
    char buffer[12];
    char outstr[15];
    dtostrf(tempC, 4, 2, outstr);
    client.publish(topic, outstr);
  }
}

  float tempC = sensors.getTempC(deviceAddress);
  if (tempC == -127.00 or tempC < -15 or tempC > 59) {
    if (ctr < 3) {
      printTemperature(sensors, deviceAddress, topic, calibration, ++ctr);
    }
    else
    {
