Starting a new Servo project

The Arduino IDE has some built in servo examples. File>Examples>...

Otherwise, google "arduino servo control" for tutorials, but ignore the ones that suggest to use the Arduino 5V output to power the servo.

Cheap hobby servos are intended for short term use in toys, and will not last long when put into continuous operation, 24/7.