a typical Hall effect sensor specifically detects the South pole of a magnet. https://en.wikipedia.org/wiki/Hall_effect_sensor
Vernon...
I read through your reference re Hall effect sensors. I found no mention of magnetic polarity ("specifically detects the South pole of a magnet") and orientation thereof playing a significant or essential role in the operation of the Hall effect sensor.
Can you elaborate, please?
I do, however, see mention of operational problems if the magnetic field is too strong, underscoring Chuck"s possible caveat re Nd magnets in this application.
I've encountered hit-or-miss situations with this sensor several times. It may well be a magnetic field strength problem. Next time I run across this problem, I think I'll experiment with some of the Nd mini magnets as others have suggested.
But I wonder that the sporadic operation could sometimes be a series electrical issue (IOW, dirty contacts) in the power pickups...dirty wheels/axles/track, oxidized copper axle pickups, carpet fibers, pet hair, combinations thereof, etc.? I've had some success in spraying electrical contact cleaner on the truck axle pickups, cleaning the wheels, checking for fibers and dirt at all the contact points/lines. Not necessarily a panacea, but in some cases it's helped quite a bit. If the magnetic field is marginal...at best..., perhaps a bit of bad ol' contact dirt in the circuit daisy-chain could be just the sporadic nemesis to gnash the teeth!
Just a thought...
KD