       snprintf( content, sizeof( content ), "sensorname%i", sensorNumber );
       saveStringNVS( content, request->arg( "sensorname" ).c_str() );
 
-      Serial.printf( " Saved '%s' as '%s'\n", request->arg( "sensorname" ).c_str(), content );
+      ESP_LOGI( TAG, " Saved '%s' as '%s'\n", request->arg( "sensorname" ).c_str(), content );
 
       snprintf( content , sizeof( content ), "%s", request->arg( "sensorname" ).c_str() );
     }

      if ( request->authenticate( www_username, readStringNVS( passwordKeyNVS, www_default_passw ).c_str() ) )
      {
        startTimer = millis();
        Serial.printf( "Starting upload. filename = %s\n", filename.c_str() );
        if ( !filename.startsWith( "/" ) )
        {
          filename = "/" + filename;


void webServerTask ( void * pvParameters )
{
  ESP_LOGI( TAG, "Starting webserver setup. " );

  server.on( "/api/login", HTTP_POST, []( AsyncWebServerRequest * request )
  {
