Using DC to drive the IR emitter can cause problems in the receiver due to the ambient light.
Pulsed emitter drive enables the receiver to be AC coupled which reduces ambient light problems.
Buy a detector with an inbuilt ambient light filter,SHF309FA