arduino sketch to pan servo left and right

any suggestions?

//scan from 0 to 180 degrees
for(servoPos = 0; servoPos < 90; servoPos++)

Don't write comments that are patently false.

When i try to insert negative degrees in reference to zero degrees

Where in the documentation does it say the Servo methods accept negative values?

Use code tags