The E3Z-F Series of Photoelectric Sensors from Omron are available with visible or infrared LEDs. There are diffuse reflective sensors with distances available from 100 millimeters to 1 meter; Through-beam sensors up to 20 meters and retro-reflective sensors up to 4 meters.
Find out more: https://www.onlinecomponents.com/featured/omron-automation-safety--174/omron-automation-safetys-e3z-f-miniature-photoelectric-sensors-with-m18-threaded-nose-mounting?id=206