You searched for "rectangular shape"
RS PRO
RS PRO Rectangular Proximity Switch, NO, 250V, 5A
Part: 339-746
A compact rectangular magnetic proximity switch that detects nearby metal objects and opens/closes an electrical circuit to control machinery and automation systems.