 bool NTPupdated = false;
 bool MessageSentBooted = false;
 
+#define SendValues EEPROM.read(0)==1
+
 // Initialize the OLED display using Wire library
 SSD1306  display(0x3c, D1, D2);
 OLEDDisplayUi ui( &display );

        Serial.printf("%d Irms: ", millis());
        Serial.print(rmsValue);
        Serial.println("");
        sendUDPBroadcast(rmsValue);
        rmsLastUpdate = millis();
    }
    int remainingTimeBudget = ui.update();

}

void drawFrame3(OLEDDisplay *display, OLEDDisplayUiState* state, int16_t x, int16_t y) {
    if(triggeredClick && ((millis()-lastClick)>clickInterval))
    {
        triggeredClick = false;
    }
    if(!triggeredClick)
    {
        if(digitalRead(D5)==0)
        {
            EEPROM.write(0,SendValues?0:1);
            EEPROM.commit();
            triggeredClick = true;
            lastClick = millis();
        }
    }
    if(SendValues)
    {
        display->drawXbm(x + 34, y + 34, checkedbox_width, checkedbox_height, checkedbox_bits);
    }
    else
    {
        display->drawXbm(x + 34, y + 14, checkbox_width, checkbox_height, checkbox_bits);
    }
}

String urlencode(String str)
