Couldn't you drain an INPUT_PULLUP through that photodiode?
Modes of Operation (Photoconductive vs. Photovoltaic)
A photodiode can be operated in one of two modes: photoconductive (reverse bias) or photovoltaic (zero-bias). Mode selection depends upon the application's speed requirements and the amount of tolerable dark current (leakage current).
Photoconductive
In photoconductive mode, an external reverse bias is applied, which is the basis for our DET series detectors. The current measured through the circuit indicates illumination of the device; the measured output current is linearly proportional to the input optical power. Applying a reverse bias increases the width of the depletion junction producing an increased responsivity with a decrease in junction capacitance and produces a very linear response. Operating under these conditions does tend to produce a larger dark current, but this can be limited based upon the photodiode material. (Note: Our DET detectors are reverse biased and cannot be operated under a forward bias.)
Photovoltaic
In photovoltaic mode the photodiode is zero biased. The flow of current out of the device is restricted and a voltage builds up. This mode of operation exploits the photovoltaic effect, which is the basis for solar cells. The amount of dark current is kept at a minimum when operating in photovoltaic mode.
Dark Current
Dark current is leakage current that flows when a bias voltage is applied to a photodiode. When operating in a photoconductive mode, there tends to be a higher dark current that varies directly with temperature. Dark current approximately doubles for every 10 °C increase in temperature, and shunt resistance tends to double for every 6 °C rise. Of course, applying a higher bias will decrease the junction capacitance but will increase the amount of dark current present.
The dark current present is also affected by the photodiode material and the size of the active area. Silicon devices generally produce low dark current compared to germanium devices which have high dark currents. The table below lists several photodiode materials and their relative dark currents, speeds, sensitivity, and costs.
]
https://www.thorlabs.com/tutorials.cfm?tabID=31760
What can I say? My black bulb IR detectors act like phototransistors.
As to "beam", restrict the view of the detector to a target light source and you have your beam. The IR led emits a cone, makes it easier to aim. If both were focused it would be hard. You can color a piece of cardstock black on one edge and roll a tube with non-reflecting inside just big enough to fit the detector bulb in one end and tape it up good, see how it works.