if (servoState == LOW) {
Serial.println("The button is being pressed");
digitalWrite(BUZZER_PIN, HIGH); // turn on
digitalWrite(led, HIGH); // turn on led
}
else
if (servoState == HIGH) {
Serial.println("The button is unpressed");
digitalWrite(BUZZER_PIN, LOW); // turn off
digitalWrite(led, LOW); // turn off led
}
This one has the LED lighting up when the servo moves. ( As long as it's not going wide open. Must be tiny bit slower so that it's regulating the servo's speed. ) You can figure out how to make the Tone go.
servoMotor is presumably the pin the servo is attached to. yet you read it, int servoState = digitalRead(Servomotor); and report it as a button being pressed. i don't see any button pin defined
not clear what the purpose if for driving the servo to the same value each iteration of loop, servo.write(60);
seems you expect that reading the servo pin will indicate if the servo is moving. there's no feedback from the servo. see Servo Control to see that a servo is controlled by the width of a pulse
seems that maybe you want to use a button to alternate between 2 servo positions and perhaps briefly turn on a buzzer and LED when the button state changes
This is not a valid way to determine if the servo is turning.
There is no way to determine if a servo is turning without opening the servo and wiring to the internal control electronics. That is beyond the scope of a beginner project.