Error in uploading coding in water level sensor

const int trigPin = 9;
const int echoPin = 11;
const int LED1 = A0;
const int LED2 = A1;
const int LED3 = A2;

int duration = 0;
int distance = 0;

void setup() 
{
  pinMode(trigPin , OUTPUT);
  pinMode(echoPin , INPUT);
  pinMode(LED1 , OUTPUT);//red
  pinMode(LED2 , OUTPUT);//yellow
  pinMode(LED3 , OUTPUT);//green
  pinMode(8, OUTPUT);//buzzer
  pinMode(0, OUTPUT);// pin g
  pinMode(1, OUTPUT);// pin f
  pinMode(2, OUTPUT);// pin e
  pinMode(3, OUTPUT);// pin 
  pinMode(4, OUTPUT);// pin
  pinMode(5, OUTPUT);// pin
  pinMode(6, OUTPUT);// pin
  pinMode(7, OUTPUT);//
  digitalWrite(7, 0);  // Make pin "dp" off in all digit
  Serial.begin(9600);
}

void loop()
{
  digitalWrite(trigPin, LOW);
  delayMicroseconds(2);
  digitalWrite(trigPin, HIGH);
  delayMicroseconds(10);
  digitalWrite(trigPin, LOW);  
  duration = pulseIn(echoPin, HIGH);
  distance = duration/58.2;
  

  if ( distance <= 7 )//high level
  {
    digitalWrite(LED1, HIGH);
    tone(8, 200);
    delay(500);
       // Display 'H'
    digitalWrite(0, 1);
    digitalWrite(1, 1);
    digitalWrite(2, 1);
    digitalWrite(3, 0);
    digitalWrite(4, 1);
    digitalWrite(5, 1);
    digitalWrite(6, 0);
    delay(1000);
   
  }
  else
  {
    digitalWrite(LED1, LOW);
    noTone(8);
    delay(500);
  }
  if ( distance <= 25 )//medium level
  {
    digitalWrite(LED2, HIGH);
    delay(500);
     // Display '-'
    digitalWrite(0, 1);
    digitalWrite(1, 0);
    digitalWrite(2, 0);
    digitalWrite(3, 0);
    digitalWrite(4, 0);
    digitalWrite(5, 0);
    digitalWrite(6, 0);
    delay(1000);
  }
  else
  {
    digitalWrite(LED2, LOW);
  }
  if ( distance <= 50 )//low level
  {
    digitalWrite(LED3, HIGH);
    delay(500);
     // Display 'L'
    digitalWrite(0, 0);
    digitalWrite(1, 0);
    digitalWrite(2, 0);
    digitalWrite(3, 1);
    digitalWrite(4, 1);
    digitalWrite(5, 0);
    digitalWrite(6, 0);
    delay(1000);
  }
  else
  {
    digitalWrite(LED3, LOW);
  }
}






After we use above coding, we got this error.

Sketch uses 4042 bytes (12%) of program storage space. Maximum is 32256 bytes.
Global variables use 205 bytes (10%) of dynamic memory, leaving 1843 bytes for local variables. Maximum is 2048 bytes.
avrdude: stk500_recv(): programmer is not responding


Prototype :
Using Arduino using ultrasonic sensor to measure the water level (3 condition) , high (H) , medium (-) & low (L) . H,-, L display on 7 segment. Buzzer will turn on when the level is H. Led red for H, led yellow for - , led green for L.

Welcome

pinMode(0, OUTPUT);// pin g
pinMode(1, OUTPUT);// pin f

Pins 0 and 1 must be free for uploading a new program, they are connected to the USB-Serial converter

do you mean , delete this line or change to another pin?

do you mean like this ?

pinMode(2, OUTPUT);// pin g
  pinMode(3, OUTPUT);// pin f
  pinMode(4, OUTPUT);// pin e
  pinMode(5, OUTPUT);// pin d
  pinMode(6, OUTPUT);// pin c
  pinMode(7, OUTPUT);// pin b
  pinMode(8, OUTPUT);// pin a
  pinMode(9, OUTPUT);//
  digitalWrite(9, 0);  // Make pin "dp" off in all digit
  Serial.begin(9600);

Yes I suggest to use other pins

Pins 0 and 1 are used for Serial communication, if you want to use these pins for something else, then you should not use Serial.begin, and you have to disconnect wires from those pins every time you want to upload a new program