This is the opposite of what you want for laser microphone which usually targets a reflective surface like ... as well as audio sequences despite the sensor itself being less than ideal, and ...
Proximity sensors are common enough in automation ... The first try at this used an OBP732 reflective transmitter and an ATtiny202 microcontroller and had three pads on the PCB for programming.