Servo end stops

Maybe by using the min and max parameters in the attach() function

See Servo - attach() - Arduino Reference