 
 TemperatureRingBuffer tempRingBuf_1;
 TemperatureRingBuffer tempRingBuf_2;
-unsigned long lastSend = 0;
+unsigned long lastSendMillis = 0;
+unsigned long lastRecordedMillis = 0;
 
 /**************************************************************/
 


void sendValuesToHost() {
    unsigned long currentMillis = millis();
    if ((currentMillis - lastSend) > SEND_TO_HOST_INTERVALL_IN_MILLIS) {
        lastSend = currentMillis;

        Serial.print("(1) ");
        Serial.print(averageValues(&tempRingBuf_1), 1);
        Serial.println("Grad Celsius");

        Serial.print("(2) ");
        Serial.print(averageValues(&tempRingBuf_2), 1);
        Serial.println("Grad Celsius");

        Serial.println("");
    }
}

void setup() {

}

void loop() {
    recordSensorMeasurements();
    adjustFanSpeed();
    if (SEND_TEMP_VALUES_TO_HOST) {
        sendValuesToHost();
    }
