   // Divided by 2 because the sound travels twice the distance
   // Speed of sound is 343m/sec = 0.0343cm/μs = [1/29.1] cm/μs
   distance = (distance/2) / 29;
-  //Serial.println(distance);
   return distance < thresholdProximity;
 }
 

  digitalWrite(pinPowerLED, HIGH);
}


void loop() {
  ppad.flush();
  delay(100);

    if(ppad.available()) {
      String in = ppad.readStringUntil('\n');
      Serial.println(in);

      if(in.charAt(0) == '1') {
        alertSensorEssential = true;
