     static unsigned long tsMeasure, tsMeasureOld;
     static unsigned int cntMeasure;
     static int lightValueOld;
-    static unsigned char lightStatusOld;
+    static unsigned char lightStatusOld = lightStatus;
     if (millis() - tsMeasure >= PERIOD_MEASURE_LIGHT || tsMeasure == 0) {
         tsMeasure = millis();
         // Value

    static unsigned long tsMeasure, tsMeasureOld;
    static unsigned int cntMeasure;
    static int rainValueOld;
    static unsigned char rainStatusOld;
    if (millis() - tsMeasure >= PERIOD_MEASURE_RAIN || tsMeasure == 0) {
        tsMeasure = millis();
        // Value

  static unsigned long tsMeasure;
  if (millis() - tsMeasure >= PERIOD_MEASURE_RSSI || tsMeasure == 0) {
    tsMeasure = millis();
    rssiValue = efRssi.getValue(WiFi.RSSI());
    }
}

