ir sensor as a detector alarm

This is the sensor http://www.ebay.com/itm/2PCS-Digital-38KHz-Infrared-IR-Sensor-Transmitter-Kit-for-Arduino-JT1-/400540617003 I connected the data pins and gave it supply and a signal is send from the photo diode when passing the receiver an led on the receiver go high to tell you it revieved a signal (it is build in)

Now I need some help to with the coding to make a buzzer go high when the receiver receives a signal from the photo diode