need help programming value of proximity sensor to sweep servo arm

groundFungus:
For what?

Just to see if my sketch is working does something. Wave my hand over the sensor, turn the led on?
Should be pretty much the same as Move the servo to X position. No?