 //
 #define ONE_WIRE_BUS 6
 #define ONE_WIRE_BUS2 7
-int DEUR_PIN = 8;
-int DEUR_DETECT = 5;
+#define DEUR_PIN 8
+#define DEUR_DETECT 5
 int lastDeurState = HIGH;
-int WC_DETECT = 9;
+#define WC_DETECT 9
 
 // Setup a oneWire instance to communicate with any OneWire devices
 OneWire oneWire(ONE_WIRE_BUS);

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

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