Code that will allow a pir sensor to trigger a servo?

Hi,

I am a complete beginner to arduino and as part of my art project am trying to make a sewing machine that will appear to work by itself. The process will be triggered by human motion/presence. I have a pir sensor which will trigger a servo to move and push the sewing machine pedal down and start the machine sewing.

I have all the parts I need I am just having problems finding/writing code that will make it all happen! Any help will really be apreciated! :slight_smile: