PIR Sensor

Hello Guys!
anybody could lead me to a link of code reading my PIR as input device for my alarm
Thanks

http://forum.arduino.cc/index.php?topic=149021.0