Project 12 bad servo?

Thanks for the help. I did notice that the example contained the code the book left out. I have loaded the example code and the results are as follows.
With servo in the circuit, green Led lights, serial data reads box unlocked.
Pushed switch button red Led lights, serial data reads bad knock value 156 to 168, and no response to tap. Stays red. No movement from servo.
Then I simply unplug the servo and the arduino board, plug the board back in and and the green Led lights, serial data reads box unlocked. I push the switch button the red Led lights, serial data reads a value of 1 to 2 or3. It then responds to taps with the yellow Led flashing and after 3 taps and flashes, green Led comes on and box is unlocked. tap values were 21, 46, and 58. This is the same as it did with the code I copied from the book with the added line of code. The problem seems to be from the 156 to 168 value that is always present with the servo plugged in.
Also the servo worked fine for project 5 the mood cue.
Any ideas? Bad servo? I hate to give up on a project.
JP