Triggering a servo to repeat an action

    Serial.print("Moved to: ");
    Serial.print(angle);   // print the angle
    Serial.println(" degree");

They print out the variable "angle" assuming You have activated serial monitor in the IDE.