I would like to use an IR transmitter/receiver pair to detect when an object obstructs (or does not obstruct) the path between the the transmitter and receiver and illuminate an LED when the path is not obstructed. Initially, using an input for each of the IR receivers and and output for each corresponding LED would work, but IO would quickly limit the size of the project. Ideally, all (or almost all) of the IO would be configured for input to detect the state (high/low) of the LED circuit.
I was thinking about using the IR receiver to open/close the gate on a MOSFET that then powers the LED and measure the voltage on the drain side of the MOSFET via the microcontroller input.
However, the data sheet for the IR receiver suggests a PWM signal output from the received signal. (https://www.adafruit.com/product/157)
Would this signal cause issues with keeping the gate open/closed, or is the pulse width small enough that the gate would remain open/closed? If not, would there be a simple circuit/device that would solve the issue? Or maybe there is an "IR signal detector switch" that I am unaware of.