     Serial.begin(9600);
     
     if (db.count()) db.open(db.count());
-    else db.create(3, TABLE_SIZE, sizeof(myrec));
+    else db.create(14, TABLE_SIZE, sizeof(myrec));
 }
 
 void loop() {


void clearData() {
    db.clear();
}

void setTravelTime() {
    Serial.println("set travel time in sec");
    while (Serial.available() == 0) { }
    
    travelTime = Serial.parseInt();
    setLogInterval();
}

void setLogInterval() {
    logInterval = travelTime / maxLogs;
    logData = true;
    EEPROM.write(0,logInterval);
    EEPROM.write(1,logData);
}

void readDHT11() {


// Variables to use for the interval
unsigned long previousMillis = 0;
unsigned long previousLogMillis = 0;
unsigned long logDelay = 0;                       // Log delay in milliseconds
int logInterval = 0;                             // Log interval in milliseconds

// Variables
dht11 DHT11;
EDB db(&writer, &reader);
long travelTime; // Total travel time in s
boolean travelTimeSet = false;
int maxLogs = 252;
String msg;
boolean logData = false;
