Html web page displayed from sd card with arduino and ESP-01

Hi everyone. I want to send an html page that is on an SD Card through an ESP-01 module and an Arduino Uno pad, and periodically display temperature. The idea is that I don't know how to do this exactly with the ESP-01 module. Can you help me? Below is the code.

#include <SoftwareSerial.h>   //Software Serial library
SoftwareSerial espSerial(2, 3);   //Pin 2 and 3 act as RX and TX. Connect them to TX and RX of ESP8266      
#include <dht.h>
#include <SPI.h>
#include <SD.h>
#define DEBUG true
const String mySSID = "Senzor";       // WiFi SSID
const String myPWD = "ABCDEFGHJ"; // WiFi Password
dht DHT;
int temperatura=0;
int chk=0;
//const String sendData1 ="<!DOCTYPE html>\n<html>\n<head>\n<meta http-equiv=\"refresh\" content=\"20\">\n</head>\n

\n<body>\n<center>\n<b><i><font size=\"6\" face=\"sans-serif\" color=\"red\">VALOARE TEMPERATURA:</b></i></font>

" ;
//const String sendData2 ="<form action=\"/down.php\" class=\"f2\">\n <b><i><font size=\"6\" face=\"sans-serif\" color=\"blue\">

</font><center>\n  <input type=\"submit\" class=\"botun\" value=\"DESCARCARE\"></center>\n</form></center> \n</body>\n</html>";
File webPage;
#define DHT11_PIN 7
void setup()
  //int chk = DHT.read11(DHT11_PIN);
  espData("AT+RST", 1000, DEBUG);                      //Reset the ESP8266 module
  espData("AT+CWMODE=1", 1000, DEBUG);                 //Set the ESP mode as station mode
  //espData("AT+CWJAP=\""+ mySSID +"\",\""+ myPWD +"\"", 1000, DEBUG);   //Connect to WiFi network
  espData("AT+CIPMUX=1", 1000, DEBUG);
  String IpAdress = "";
  espData("AT+CIPSNTPCFG=1,3,\""+ IpAdress +"\"", 1000, DEBUG);
  espData("AT+CIPSNTPTIME?", 1000, DEBUG);

  Serial.print("Initializing SD card...");

  if (!SD.begin(4)) {
    Serial.println("initialization failed!");
    while (1);
  Serial.println("initialization done.");

  void loop()
  { int chk = DHT.read11(DHT11_PIN);

  espData("AT+CIPSERVER=1,80",1000, DEBUG);
  espData("AT+CIFSR", 1000, DEBUG);
  webPage ="index.txt");
  if (webPage) {
    // read from the file until there's nothing else in it:
    while (webPage.available()) {
    // close the file:
  } else {
    // if the file didn't open, print an error:
    Serial.println("error opening index.txt");

  String espData(String command, const int timeout, boolean debug)
  Serial.print("AT Command ==> ");
  Serial.println("     ");
  String response;
  long int time = millis();
  while ( (time + timeout) > millis())
    while (espSerial.available())
      char c =;
      response += c;
  if (debug)
  return response;

And here is the html page. I wish that when I find the smiley face to replace it with temperature.

<!DOCTYPE html>
    <title>Arduino Uno Temperature Logger! ☺</title>
        * {
            box-sizing: border-box;
    	div {
            padding: 20px;
            background-color: #f6f6f6;
            overflow: hidden;
    	input[type=text], textarea, select {
            font: 17px Arial;
            width: 100%;
            padding: 12px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font: 17px Arial;
            width: auto;
            float: right;
            cursor: pointer;
            padding: 7px;
    <meta charset="utf-8">

        <!--Add few elements to the form-->

            <input type="text" id="txtName" placeholder="Current temperature is: 39°☺" />
            <input type="button" id="bt" value="Save temperature log" onclick="saveFile()" />

	let today = new Date();
	let date = today.getFullYear()+''+(today.getMonth()+1)+''+today.getDate();
	let time = today.getHours() + '' + today.getMinutes() + '' + today.getSeconds();
	let dateTime = date+''+time;
    let saveFile = () => {
        // This variable stores all the data that is to be written to a file.
        let data ='☻ It is hot!!! Blah! ☼';
        // Convert the text to BLOB.
        const textToBLOB = new Blob([data], { type: 'text/plain' });
        const sFileName = dateTime+'_TemperatureLog.txt';	   // The file to save the data.

        let newLink = document.createElement("a"); = sFileName;

        if (window.webkitURL != null) {
            newLink.href = window.webkitURL.createObjectURL(textToBLOB);
        else {
            newLink.href = window.URL.createObjectURL(textToBLOB);
   = "none";