Arduino using RPR-220

Looking for a program which uses a IR transmitter and optical sensor for detecting the present of an object. A program which accomplishes this exist, saw it once can not locate again. The IR emitter transmits a pulse train. The optical sensor output is averaged to determine the ambient light level. The program then looks for a señor level above the ambient light level.

Thanks for any help in finding this program.

Apparently you haven't heard of Google.

https://www.deviceplus.com/how-tos/arduino-guide/entry015/

Thanks for the info. I've seen that program, not the one I'm looking to find, again.

I've searched my History, but can not recover the interesting article.