simond
Western Thunderer
a working electro-mechanical solution that relies on physical contact, harder as the scale shrinks and diminishing equally in reliability and value.
I think I’d put a reed switch under the track, and a magnet on the loco, though a light sensor is another option.
I’d avoid mechanical contact like the plague!
Atb
Simon