bobg said:
I think what you are suggesting is to make the wheel itself into the switch, rather than operate a microswitch. That means that wheel/rail contact must be kept good at all times. With steamers oil might be a problem.
Yes, this was my suggestion. Not that I have tried before, but I would imagine that no matter how much oil you have on the wheels, it is still the rails the wheels ride on not on a film of oil. And it is only a short section of rail that has to be kept clean. Using a guard rail as contact would use the inner surface of the wheel which is usually cleaner.