     if (EEPROM.read(2)) logData = (boolean) EEPROM.read(2);
     if (EEPROMReadlong(3)) previousLogMillis = (long) EEPROMReadlong(3);
     if (EEPROM.read(7)) travelTimeSet = (boolean) EEPROM.read(7);
-    if (EEPROMReadInt(8)) logDelay = (int) EEPROMReadInt(8);
-    if (EEPROMReadlong(10)) travelTime = (long) EEPROMReadlong(10);
-    if (EEPROMReadInt(14)) addr = (int) EEPROMReadInt(14);
+    if (EEPROMReadlong(8)) logDelay = (int) EEPROMReadInt(8);
+    if (EEPROMReadlong(12)) travelTime = (long) EEPROMReadlong(10);
+    if (EEPROMReadInt(16)) addr = (int) EEPROMReadInt(14);
     
     if (logInterval <= 1000) logData = false;
     

void calcAvgTemp() {
    int totalTemp = 0;
    int cases = 0;
    for (int i = 16; i < addr; i++) {
        if (i % 2 != 0) {
            totalTemp += (int) EEPROM.read(i);
            cases++;

void calcAvgHumidity() {
    int totalHumidity = 0;
    int cases = 0;
    for (int i = 18; i < addr; i++) {
        if (i % 2 == 0) {
            totalHumidity += (int) EEPROM.read(i);
            cases++;
