You searched for "rectangular shape"
RS PRO
RS PRO Diffuse Reflection Photoelectric Sensor, Barrel Sensor, 0.4 m Detection Range
Part: 204-3971
Infrared diffuse sensor detects objects up to 0.4m for factory automation and assembly lines.