      
         
        
-       myservo.write(90);
+       myservo.write(posMin);
        Repos = 0;
        CompteurRepos = 0;
        ActionBouche =0;
-       delay(100);
+       delay(20);
        //digitalWrite(servoPin, LOW);
       }
 


     
    val = analogRead(HPpin);
//Serial.println(val);
//Serial.print('\n');
    if (val > MIN ) // if values detected : speaker voltage

        myservo.attach(servoPin);
        delay(1);
        }
      Serial.println(val);
      ActionBouche = 1;
      //myservo.attach(9);
      //delay(10);
      
     
      myservo.write(posMax);
      
      CompteurRepos=0;
      delay(MouthTimer);
      
      }
      if (BoucheStatus == 1 && ActionBouche == 1)
