         if (relay_status != LOW) {
             relay_status = LOW;
             digitalWrite(PIN_RELAY, relay_status);
-            logData("switch", 1);
+            logData("relay", "on");
         }
     } else {
         if (temperature < targetTemp-TEMP_OFFSET) {
             if (relay_status != HIGH) {
                 relay_status = HIGH;
                 digitalWrite(PIN_RELAY, relay_status);
-                logData("switch", 0);
+                logData("relay", "off");
             }
         }
     }

void readTemperature() {
    sensors.requestTemperatures();
    temperature = (double)sensors.getTempFByIndex(0);
}

/**

    // setup temperature sensors
    sensors.begin();
    targetTemp = TEMP_TARGET;
    // setup cooler relay
    pinMode(PIN_RELAY, OUTPUT);
    digitalWrite(PIN_RELAY, relay_status);
}
