> For a model train, I would suggest either a hall effect sensor > or a phototransitor.. What about a bar code? I hear real trains use bar codes to label cars. Cheers, Win Wiencke