Tell me if I'm wrong, for some reasons (bad rails connexions... ), there are some parts of the rails where you want to check that the voltage is equal to the transfo output ?
as I recall, the direction of the train is changed by reversing the "+" and "-" on the rails, it will be a little tricky to measure it with an analog input. You'll need more than a resistor divider !!