Light barrier

I would like to use a light barrier to detect thoroughfares through an entry. The distance is almost 6m, the planned location is outdoor. Which model is recommendable to use with an Arduino?

My garage door safety beam seems to work well in broad daylight, including afternoon direct sunlight. Start with a Google of Garage Door Safety Beam where you get a transmitter and receiver. Next a Google of LASER emitter and LASER detector should give you some results. I have bought several from Amazon and they work in daylight.

Laser Emitter: https://www.amazon.com/CenryKay-650nm-Laser-Head-Diode/dp/B07WFMYNG3/ref=asc_df_B07WFMYNG3/?tag=hyprod-20&linkCode=df0&hvadid=386649289423&hvpos=&hvnetw=g&hvrand=2039625488930530489&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9015345&hvtargid=pla-828432768238&psc=1&tag=&ref=&adgrpid=77847887414&hvpone=&hvptwo=&hvadid=386649289423&hvpos=&hvnetw=g&hvrand=2039625488930530489&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9015345&hvtargid=pla-828432768238

LASER Detector: https://www.banggood.com/Laser-Receiver-Module-Non-modulator-Tube-Laser-Sensor-Module-p-915633.html?cur_warehouse=CN

Just give this a read: https://www.mschoeffler.de/2017/01/20/how-to-build-an-optical-light-barrier-with-the-arduino-the-keyes-laser-module-ky-008-and-a-laser-receiver-detector-module/

Ron

Better use a common IR diode and a 3-pin remote control receiver for a light barrier. Much easier to set up (aim) than a laser. Leo..

Do you need to measure vertically or horizontally? Outdoor or indoors?

I could imagine several sensors like those ones creating a light barrier

https://www.terabee.com/shop/accessories/teraranger-hub-evo/

Looks like they provide a code in Arduino to copy and paste for any application

Be aware that rain can affect the operation of sensors due to light scattering and absorption