pir sensor with a Mini Maestro

Hello All

can someone help me with a sketch on a mini maestro. all im trying to do is detect motion with a pir sensor and  start servos to move in a mini maestro sketch wiring the sensor is no problem nor the servos The problem I have is how to add the sensor to the sketch, Im not sure how to identify the sensor or how to write it in

any help would be apreciated