         Serial.println("");
         if(SendValues)
         {
-            sendUDPBroadcast(rmsValue);
+            sendUDPBroadcast(measurement);
         }
         rmsLastUpdate = millis();
     }

    if(!WiFiConnected)
        display->drawString(0, 20, "Connecting...");
    else
        display->drawStringMaxWidth(0, 20, 128, String("Herzlich Willkommen!"));
}

void drawFrame2(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) {

bool calibrated = false;

unsigned int globalState = 0;
String StateStrings[] = {"aus", "nur Display", "Wasser ziehen", "Heizen", "Waschen", "Schleudern", "Fertig"};

unsigned int debounceInterval = 200;
unsigned int lastJoystick = 0;
