Arduino uno rev 3 is not uploading

When I enter my code it takes 1 second to verify and does not upload & I'm not getting any error
this is my code for checking if my wifi is connected to my esp 01 module:

#include <SoftwareSerial.h>
#include <stdlib.h>

SoftwareSerial ESP8266(2, 3); // RX, TX
unsigned char check_connection=0;
unsigned char times_check=0;
void setup() {
  Serial.begin(9600);
  ESP8266.begin(9600);  

   ESP8266.print("***VER:");
delay(2000);
ESP8266.println("AT+RST");
 delay(1000);
 ESP8266.println("AT+GMR");
delay(1000);
ESP8266.println("AT+CWMODE=3");
delay(1000);
ESP8266.println("AT+CWLAP");
delay(1000);
}


void loop() {
Serial.println("Connecting to Wifi");
   while(check_connection==0)
  {
    Serial.print(".");
  ESP8266.print("AT+CWJAP=\"Sobha mobile\",\"123123123\"\r\n");
  ESP8266.setTimeout(5000);
 if(ESP8266.find("WIFI CONNECTED\r\n")==1)
 {
 Serial.println("WIFI CONNECTED");
 break;
 }
 times_check++;
 if(times_check>3) 
 {
  times_check=0;
   Serial.println("Trying to Reconnect..");
  }
  } 

  while(1);
}
    char Cha[]="WIFI CONNECTED\r\n";
    if (ESP8266.find(Cha) )
    {
      Serial.print(Cha);
      break;
    }

I tried this. it doesn't work

How did you check that it doesn't upload if there are no errors?

I OPENED THE SERIAL MONITOR BECAUSE I HAD PUT A CODE FIRST THAT PRINTS IN THE SERIAL MONITOR "HI I AM WORKING". THEN THIS PROBLEM HAPPENED. I FOUND IT WAS NOT UPLOADING BECAUSE IT DID NOT ERASE THE SERIAL MONITOR OR ELSE IT WOULD HAVE ERASED It.

Don't use caps
Writing text in solid caps is perceived as if a person is yelling. This is disrespect for other users.

Hi @saatvikshiron. I'm going to ask you to provide the full output from an upload attempt.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Open your sketch in Arduino Cloud Editor.
  2. Click the "Settings" icon at the bottom left corner of the page:
    Settings icon screenshot
    The "Settings" panel will open.
  3. Select the "Concise output" radio button under the "Console verbosity" section of the "Settings" panel.
  4. Click the button in the Cloud Editor toolbar.
  5. Wait for the upload process to finish.
  6. If the black "Console" panel at the bottom of the Cloud Editor page is minimized, click the ˄ icon at the right side of the "Console" toolbar to expand it.
  7. Click the icon in the top right corner of the black "Console" panel at the bottom of the Cloud Editor page that looks like two pieces of paper ("Copy Console Output"):
  8. Open a forum reply here by clicking the "Reply" button.
  9. Click the <CODE/> icon on the post composer toolbar.
    This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
    Code block icon on toolbar
  10. Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
    This will paste the compilation output into the code block.
  11. Move the cursor outside of the code block markup before you add any additional text to your reply.
  12. Click the "Reply" button to post the output.

In case the output is longer than the forum software will allow to be added to a post, you can instead save it to a .txt file and then attach that file to a reply here.

Click here for attachment instructions

  1. Open any text editor program.
  2. Paste the copied output into the text editor.
  3. Save the file in .txt format.
  4. Open a forum reply here by clicking the "Reply" button.
  5. Click the "Upload" icon (Upload icon) on the post composer toolbar:
    Upload icon on toolbar
    The "Open" dialog will open.
  6. Select the .txt file you saved from the "Open" dialog.
  7. Click the "Open" button.
    The dialog will close.
  8. Click the "Reply" button to publish the post.

Alternatively, instead of using the "Upload" icon on the post composer toolbar as described in steps (5) - (7) above, you can simply drag and drop the .txt file onto the post composer field to attach it.

sorry i did in mistake

So fix it

its blank

Use the pencil icon under the message to edit

i know