     type_s = chipType(addr[0]);
     sensors[sensor_id].id = sensor_id + 1;
     sensors[sensor_id].type = type_s;
-    memcpy(&sensors[sensor_id].addr, &addr, sizeof(addr));
+    memcpy(&sensors[sensor_id].addr, &addr, SENSOR_ADDR_SIZE);
 
     const char* name = getChipName(sensors[sensor_id].type);
     char sensorMessage[75];

#include "OneWire.h"
#include "elapsedMillis.h"
#include <list>

elapsedMillis scanTimeElapsed;
elapsedMillis tempTimeElapsed;

float temperature;
float minuteAverage;
std::list<float> temperatures(6);
float tempThreshold = 62.0F;
bool power = false;
boolean ledState = LOW;

struct Sensor {
  int id = 0;
  byte addr[SENSOR_ADDR_SIZE] = {0, 0, 0, 0, 0, 0, 0, 0};
  byte type = '\0';
};

