ESP8266-01 is not working and it cpu gets hot

it has been so long since I tried to connect the esp8266 through Arduino Uno and get it to work my goal is to send data from the Arduino Uno to web site, I have tried everything and a lot of codes but none worked at first I could get a response but sometimes it does and sometimes it does not I even bought an other one but the new one did not respond at all so I flashed the old one following the instructions in http://remotexy.com/en/help/esp8266-firmware-update/ and I got response the next day I tried to reuse it and it does not respond at all not even when I put the serial on 115200 and both NR&CR and tried AT but nothing showed in return .i found this tutorial
and I tried to get it to work using a mobile app but as usual, it does not work

AT
AT
AT
AT
AT
AT

this is the code

    // RemoteXY select connection mode and include library  
    #define REMOTEXY_MODE__ESP8266_HARDSERIAL
    
    #include <RemoteXY.h> 
    
    // RemoteXY connection settings  
    #define REMOTEXY_SERIAL Serial 
    #define REMOTEXY_SERIAL_SPEED 115200 
    #define REMOTEXY_WIFI_SSID "RemoteXY" 
    #define REMOTEXY_WIFI_PASSWORD "12345678" 
    #define REMOTEXY_SERVER_PORT 6377 
    
    
    // RemoteXY configurate   
    #pragma pack(push, 1) 
    uint8_t RemoteXY_CONF[] = 
      { 255,2,0,0,0,30,0,8,13,0,
      2,0,70,25,22,11,2,26,31,31,
      79,78,0,79,70,70,0,1,0,10,
      26,12,12,2,31,88,0 }; 
       
    // this structure defines all the variables of your control interface  
    struct { 
    
        // input variable
      uint8_t switch_1; // =1 if switch ON and =0 if OFF 
      uint8_t button_1; // =1 if button pressed, else =0 
    
        // other variable
      uint8_t connect_flag;  // =1 if wire connected, else =0 
    
    } RemoteXY; 
    #pragma pack(pop) 
    
    ///////////////////////////////////////////// 
    //           END RemoteXY include          // 
    ///////////////////////////////////////////// 
    
    #define PIN_SWITCH_1 2
    #define PIN_BUTTON_1 12
    
    
    void setup()  
    { 
      RemoteXY_Init ();  
       
      pinMode (PIN_SWITCH_1, OUTPUT);
      pinMode (PIN_BUTTON_1, OUTPUT);
       
      // TODO you setup code 
       
    } 
    
    void loop()  
    {  
      RemoteXY_Handler (); 
       
      digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);
      digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);
       
      // TODO you loop code 
      // use the RemoteXY structure for data transfer 
    
    
    }

i wired it like this

RX -> RX /TX-> TX/ CH_en and vcc to 3.3 v of the arduino / gnd ->gnd

one last thing is it gets hot every time so what could be the problem what’s wrong with is what should I do

RX -> RX /TX-> TX/ CH_en and vcc to 3.3 v of the arduino / gnd ->gnd

You wired the 3.3V tx/rx lines of an ESP to the 5V tx/rx lines of an UNO, makes sense why the ESP get hot.

Also, the ESP should be given 5V to its 5V line and allow the ESP's 3.3 volt regulator to do its designed job.

is all the arduino pins gives 5v because i tried it on diffrent pins and i got the same result
what should i do

elaahidri:
is all the arduino pins gives 5v because i tried it on diffrent pins and i got the same result
what should i do

The Arduino Uno is a 5 Volt device.

What you should do is up to you. You can use the ESP as a heater in the winter months. You can, also, get a new ESP and start all over but, this time, do research into something called "level shifters".

the reason why i am asking is that i used an esp before with the arduino using a mobile app in that time it did not heat up and i did not use anything with it and it worked just fine.
so what you are saying is that they are both damaged and they do not work anymore

elaahidri:
the reason why i am asking is that i used an esp before with the arduino using a mobile app in that time it did not heat up and i did not use anything with it and it worked just fine.
so what you are saying is that they are both damaged and they do not work anymore

I am saying that the ESP is broke.

so I am planning on paying a new one can you tell me how should I wire it so it will not break again

elaahidri:
so I am planning on paying a new one can you tell me how should I wire it so it will not break again

Which level shifters have you decided to use?