if there is any ambient light leakage a ir sensor like SEN-19018 would be better than a photo diode, with the bonus of making
led modulation unnecessary too.

if the distance between led and sensor is small [under 10mm] then you only need a small current through led 5 to 20 mA
would be heaps