The MicroPython code for my Raspberry Pi Pico powered level-crossing lights now triggers the sequence when the test train passes the first beam break sensor, but doesn't finish until after the final coach has completely passed the second pair. Full update to my original video ( • Raspberry Pi Pico controlled level-crossin... ) coming soon.