Excuse the messy work surface, but I'm working on an arduino sketch for a railroad crossing on a T-TRAK module. The two black modules have IR sensors for each end of the crossing zone, and the crossing will stay active as long as the train is between them. It works in both directions, too.
3 months ago