Hello rahul,
You haven't tell which IR module you use for beam detection. Different modules changes their pin configuration that you should have a look on to. If wrongly wire, it will damage the module. Also their frequency range of detection may vary. So try to change the transmitter frequency by some sort of adjustment say the 10K pot.
Re-check the transmitter to confirm whether it is working or not.