You searched for "rectangular shape"
RS PRO
RS PRO Through Beam Photoelectric Sensor, Rectangular Sensor, 50 cm Detection Range
Part: 254-3745
Rectangular through-beam sensor with red light for general manufacturing detection applications.