Hall-effect sensor for detecting the proximity of a magnetic field. The magnetic field may be generated either by a permanent magnet or by an electromagnetic field. Robust aluminium threaded cylindrical housing that can be easily integrated into a tapped