my arduino always error when uploading, it said "progammer is not responding"

help me ASAP… i dont know why my arduino isn’t working when i uploaded it. it always said like this

Arduino: 1.6.6 (Windows 8.1), Board: “Arduino/Genuino Uno”

Sketch uses 2,256 bytes (6%) of program storage space. Maximum is 32,256 bytes.
Global variables use 55 bytes (2%) of dynamic memory, leaving 1,993 bytes for local variables. Maximum is 2,048 bytes.
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xb5
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xb5

This report would have more information with
“Show verbose output during compilation”
enabled in File > Preferences.

that text shown even when i uploaded the example of liquidCrystal. fyi i done the correct circuit based on youtube, books etc.

and i made a project “auto tank pump, use ultasonic sensor HC-SR04 based arduini uno”. here’s the code. when it was verified, that correct code, but cannot be uploading. hiks :sob:

#include <LiquidCrystal.h> 
#include <Ultrasonic.h>

LiquidCrystal lcd(1, 2, 4, 5, 6, 7); 
Ultrasonic ultrasonic(9,10);

#define relay

const int trigPin = 9;
const int echoPin = 10;
int relay1 = 2;
int distanceCm;
long duration, cm;

void setup() {
  
lcd.begin(16,2);
lcd.print("welcome to the auto-tank :)");
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(relay1, OUTPUT);
digitalWrite(relay1, HIGH);
}

void loop() {
  
digitalWrite(relay1, LOW);
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

duration = pulseIn(echoPin, HIGH);
distanceCm = duration*0.034/2;

lcd.clear();
lcd.setCursor(0,0); 
lcd.print("Distance: ");
lcd.print(distanceCm);
lcd.print("  cm");
delay(10);
lcd.setCursor(0,1);
if(distanceCm<=30){
  lcd.setCursor(0,0);
  lcd.print("TANK EMPTY. TURN ON PUMP");
  digitalWrite(relay1, HIGH);
  long duration = ultrasonic.Timing();
  }
  else {
  lcd.setCursor(0,0);
  lcd.print("TANK FULL. TURN OFF PUMP");
  digitalWrite(relay1, LOW);
  long duration = ultrasonic.Timing();
}
}

Have you ever been able to upload a program?

Have you selected the correct COM port and board type?

...R

Do you have anything plugged into D0 or D1 when trying to upload? If so unplug it and try again.

Robin2:
Have you ever been able to upload a program?

Have you selected the correct COM port and board type?

...R

yess, i was. correct COM and Board..... i'm stuck now huhuh

dannable:
Do you have anything plugged into D0 or D1 when trying to upload? If so unplug it and try again.

no, i didn't plug it everywhere, i skip them

Mellmuc:
yess, i was. correct COM and Board..... i'm stuck now huhuh

Have you tried the age-old trick of restarting your PC?

...R

Do you have it set as, Arduino as ISO in the bootloader?