IR Barrier with a 555
Мost infrared sensors, do not respond very well to a continuous incidence of infrared light. Switching the IR source off, even for a small period, allows IR detectors to ‘recuperate’, and so optimise their ability to minimize the response to ambient light.
Try to use a modulated signal. Example.