 #define BETWEEN_RELAY_ACTIVE 5000
 
 // DS18B20
-#define ONE_WIRE_BUS 12
+//#define ONE_WIRE_BUS 12
+#define ONE_WIRE_BUS 0
 #define TEMPERATURE_PRECISION 12
 
 OneWire oneWire(ONE_WIRE_BUS);

  }
}

void motion_detection()
{
  pirValue = pirSent = HIGH ;
}

String macToStr(const uint8_t* mac)
{

IPAddress time_server = MQTT_SERVER;

// pin
//#define pir 13
//#define DHTPIN 14
#define pir 16
#define DHTPIN 2
#define RELAYPIN 4
#define TOPBUTTONPIN 5

// DHT22
#define DHTTYPE DHT22   // DHT 22  (AM2302)
DHT dht(DHTPIN, DHTTYPE);

// OTHER
#define REPORT_INTERVAL 9500 // in msec
