myServo.attach(servoPin);
myServo.write(0); // Initial position
Reverse the order of these two lines of code in setup()
myServo.attach(servoPin);
myServo.write(0); // Initial position
Reverse the order of these two lines of code in setup()