Laser sensor interfacing with arduino

Hey friends!I want to make a security system in which i want to include a laser sensor.If an object cuts the laser alarm should be triggered.Can somebody send me sample code?