An error occurd while uploading the code

Hello everyone my name is sparsh

I am making an obstacle avoiding car

So when i am uploading the code its coming that error
While uploading the code

avrdude: stk500_getsync() attempt 9 of 10: resp=0×30
avrdude: stk500_getsync() attempt 10 of 10: resp=0×20

Pls help me

Which board?

Anything connected to pins 0 and 1? On most boards, that will interfere with the upload.

I have arduino uno

You are asking for the arduino

Or the motor driver

Nothing is connected to pin 0 and 1

Try disconnect all pins to the UNO leaving only the USB connection to the PC. Then try again.

If you still have problems, restart you PC and the UNO.

Its not happening now also

Is there any other way

Pls reply atleast

Make sure you have "Arduino Uno" selected from the Tools > Board menu.

Make sure you have selected the port of your Arduino board from the Tools > Port menu.

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino, you can find it like this:

  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu. The ports list is only updated when the Tools menu is re-opened, so this step is essential.
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

Thanks let me try

Then i will let you know

Bye