If you reference everything to 0V then it will be insensitive to a single supply voltage where input common-mode voltage range includes ground in the LM358 OA.
Using Vin+ to 0V and Vin- to the inverted cathode and anode grounded will accomplish this with negative feedback such as 10 Meg. Making restricted optical in the radial direction removes interfering light.
To make this even more sensitive with matched diodes you make two identical circuit paths and use only one of the two optical paths for your test and a 3rd of 4 Op Amps as the comparator.
You want to restrict the block light in the photo-diode (or reversed LED) to about 1uA. Treat this as DC noise current. Then an optical slot will attenuate more with a hair follicle and be your signal.
Using a ground reference with high gain makes this task more stable.
Adding a slotted foil or shield across the path centre will improve your SNR ! Noise is also the drift in the Op Amp due to input bias currents.
With an open loop gain=1e5 (100dB) in the quad LM358, you can use a neg. feedback resistor > 10Meg to the cathode which keeps the inputs at 0V
This worked well for me with a 9V battery but you can use a lower V.
You can also use an LED as a Photodiode but IR PD's have daylight-blocking filters are useful if using an IR LED. But I have used blue LEDs for both emitter and detector with proper optical shielding and again reducing the unblocked area of the detector to a slot makes the linear sensitivity much higher to a thin hair.
LED's will respond as photodiodes better to wavelengths shorter than the emitter wavelength.
It was perhaps 30 yrs ago, I used IR LEDs and PD to detect a 1/4W resistor wire across a 1m wide open optical path using recessed 5mm LED and IR Rx from Sharp with AGC and transmitting a unique repeating 5 bit data pattern and any error detected was only from a tiny blocked path. It was also immune to fluorescent ceiling lights.
Just remember to avoid unwanted stray positive AC (pf) feedback which causes oscillation by choice of only 1 inverting stage with stray wires and "star ground" to avoid ground shifts.
Here's a video but intended to work more on sensing UV from an oxy-H2 flame but just using 2 LED's could detect a faint shadow created by waving my fingers far away from a ceiling light. Only using two series high Meg resistors, 2 LEDs an LM358 and 9V battery. The emitter LED wasn't needed here but the Op Amp current limiting worked fine without a resistor to drive the LED to just act as an indicator.
>150 Meg video