int trig=3;
int echo=8;
void setup() {
  pinMode(trig, OUTPUT);
  pinMode(echo, INPUT);
  Serial.begin(9600);
  

}

void loop() {
 digitalWrite(trig, HIGH);
 delayMicroseconds(10);
 digitalWrite(trig, LOW);
 delayMicroseconds(5);
 digitalWrite(trig, HIGH);
 delayMicroseconds(10);

 int time=pulseIn(echo,HIGH);
 int distance=0.0343*time;
 distance=distance/2;
Serial.println("the diatance is...");
Serial.println(distance);
delay(1000);
}