 float temperature;
 float minuteAverage;
 std::list<float> temperatures(6);
-float tempThreshold = (float)62;
+float tempThreshold = 62.0F;
 bool power = false;
 boolean ledState = LOW;
 
-#define SCAN_INTERVAL 60000
-#define TEMP_INTERVAL 10000
-#define BLINK_INTERVAL 5000
-#define POWER_INTERVAL 120000
-
 struct Sensor {
   int id = 0;
-  byte addr[8] = {0, 0, 0, 0, 0, 0, 0, 0};
+  byte addr[SENSOR_ADDR_SIZE] = {0, 0, 0, 0, 0, 0, 0, 0};
   byte type = '\0';
 };
 

}

bool findAndValidateDeviceAddress(uint8_t *addr) {
  if ( !ds.search(addr)) {
    ds.reset_search();
    delay(250);
    return false;
  }
  
  if (OneWire::crc8(addr, 7) != addr[7]) {
    debugPublish("CRC is not valid!");
    return false;
  }
  return true;
}

bool readData(byte data[12]) {

    type_s = chipType(addr[0]);
    sensors[sensor_id].id = sensor_id + 1;
    sensors[sensor_id].type = type_s;
    memcpy(&sensors[sensor_id].addr, &addr, SENSOR_ADDR_SIZE);

    const char* name = getChipName(sensors[sensor_id].type);
    char sensorMessage[75];
