- Assign the value 1 to lane A, 2 to lane B, 4 to lane C and 8 to lane D
- Read all the detectors.
- Set the variable detectedTotal = 0
- If a detector is HIGH add the appropriate value to detectedTotal.
Then you will have a unique value in detectedTotal for every combination and you can test that value with a series of IFs or maybe SWITCH CASE and act on it.
...R