Detection range for the typical tachometer NPN sensor is 2-3 mm. The hall sensor is polarity specific, take a magnet and run it across the face sensor and see if the LED lights up/pulses as the magnet goes by. In one direct it will work, the other it will be weak or won't work. Try the 9V battery. It helps people assist you if you provide specifics as the the device you are having a problem with (i.e. link or model number) and pictures of the install). Sometimes it can be something simple like zip tying a low voltage control wire to an AC wire, or electrical noise. I have not found the need to use shielding on the sender cable and a few times I did it made things worse with VFD drives, but every situation is different.
Hall proximity model: NJK-5002D
Appearance: M12mm cylinder.
Detection range: 2-3mm
Proximity output current: 200mA
Detected objects: magnet
Response frequency: 100HZ