Create method to activate or not the buzzer