You searched for "rectangular shape"
Assemtech
Assemtech Rectangular Reed Switch, NO, 200V, 500mA
Part: PPS O3A
A small magnetic reed switch that closes when a magnet passes near it, used to detect position or movement in machinery and equipment.