You searched for "rectangular shape"
RS PRO
RS PRO Inductive Block-Style Proximity Sensor, 15 mm Detection, NO Output, 20 to 250 V ac/dc, IP67
Part: 252-2026
Block-shaped inductive sensor detects metal objects up to 15mm away.