ESP 01 and Arduino UNO Can't Communicate

I changed it TX-TX and RX-RX.

It uploads but when I upload this code it displays "WiFi shield not present".

#include <WiFi.h>
#include <SPI.h>

const char* ssid = "*******";
const char* password = "*******";
void setup() {
  
  Serial.begin(115200);
  Serial.println(ssid);
//  Serial.println(password);

  WiFi.begin(ssid,password);
 if (WiFi.status() == WL_NO_SHIELD) {
    Serial.println("WiFi shield not present"); 
 } 
}

void loop() {
  

}