       initOTAupdate();
       SDwriteLogfile("WIFI connected");
 
-     // plotly_init(true); //!!! comment this line if not using plotly server
-      
+      // plotly_init(true); //!!! comment this line if not using plotly server
+
     }
     ArduinoOTA.handle();
 

        latestindex = i;
        measurementdata[i].flag |= 0x02; //data printed, can now be saved to SD
        printMeasurement(i);
        
        if(sdWatchdog >0) //not using SD or SD failed 
        {
          datareadindex = i; //update the read index (is usually done in SD function after saving the value)
        }

  attachInterrupt(MEASUREMENTPIN, pininterrupt, CHANGE); //trigger both rising and falling





  config.useDHCP = true;
