Photogate Sensor
PartIR LED and phototransistor pair mounted back-to-back detects flag blocking and measures time to nearest millisecond. A full specification article for this item is being written. Meanwhile its bill of materials and connections are below.