The next development for my Raspberry Pi Pico powered flashing 'wig-wag' level crossing lights (see link) is to have them triggered by an approaching train - and this is where my new beam break sensors come in - with only a little tweak to the Micropython code. Full video update coming soon.