Problems with my Library

  Clavier.readKeypad();
  valeur=Clavier.getValue();

If these are static methods in the class, there is no reason to create an instance of the class. If they are not static methods, you are supposed to call them with an instance of the class.