ESP01 BME280 Sensor Data Update: Google Sheet Live

function doGet(e) {
  var sheet = SpreadsheetApp.openById("Sheet_ID").getActiveSheet();
  var temp = e.parameter.temp ;
  var hum = e.parameter.hum ;
  var press = e.parameter.press ;
  var alt = e.parameter.alt ;
  var heatIndex = e.parameter.hi ;
  var Curr_Date = Utilities.formatDate(new Date(), "GMT+6", "yyyy-MM-dd");
  var Curr_Time = Utilities.formatDate(new Date(), "Asia/Dhaka", 'HH:mm:ss'); // Time in column B
  sheet.appendRow([Curr_Date, Curr_Time,temp, hum, press, alt, heatIndex]);
  return ContentService.createTextOutput("Success");
}
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
// WiFi & ThingSpeak
const char* ssid = "Your_WiFi_Name";           // provide your WiFi Name
const char* password = "Your_WiFi_Password";   // provide your WiFi Password
const char* host = "script.google.com";        // URL
const int httpsPort = 443;                     // SSL Port
// Change according to gogle script
const char* scriptPath = "AKfycbyJUFW5Y-yGb5vgTeRG63zie2hreilg0GNRLha52TVwJNBJfX_yiI3gqOgzjVgj4CQ3";
// Value to send Google sheet
  WiFiClientSecure client;
  client.setInsecure();  // Disable SSL certificate validation (easier for testing)
  Serial.print("Connecting to ");
  Serial.println(host);
  // Connecting to script.google.com with port 443
  if (!client.connect(host, httpsPort)) {
    Serial.println("Connection failed");
    delay(10000);
    return;
  }
 String url = "/macros/s/"+ String(scriptPath) + "/exec?temp=" + tStr +
               "&hum=" + hStr +
               "&press=" + pStr +
               "&alt=" + aStr +
               "&hi=" + hiStr;

  Serial.print("Requesting URL: ");
  Serial.println(url);

  client.print(String("GET ") + url + " HTTP/1.1\r\n" +
               "Host: " + host + "\r\n" +
               "Connection: close\r\n\r\n");

  while (client.connected()) {
    String line = client.readStringUntil('\n');
    Serial.println(line);
    if (line == "\r") break;
  }

  String response = client.readString();
  Serial.println("Response:");
  Serial.println(response);