const int buttonPin = A2;
const int trigPin = A1;
const int echoPin = A0;
const int buzzer = A7;
int buttonState = 0;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  pinMode(buttonPin, INPUT);  
  pinMode(trigPin, OUTPUT);
  pinMode(echoPin, INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  buttonState = digitalRead(buttonPin);
  if(buttonState==LOW){

    digitalWrite(trigPin, HIGH);
    delayMicroseconds(10);
    digitalWrite(trigPin, LOW);
    int duration = pulseIn(echoPin, HIGH);
    float dis = duration / 58.0;  
    Serial.print("Distance en CM: ");
    Serial.println(dis);
    delay(1000);}

}
$abcdeabcde151015202530354045505560fghijfghij