Old skool electronics. On a Dutch tech forum most people only know programable electronis, people would even use an Arduino to make a LED blink. I would use a CD4017 with some diodes to make the sequence.
In the past I had the idea to make such a setup but then with an analog or PWM control to look up the sensor switching point as a timing measurement.