Oh. Sorry. For some reason I missed the detail on your original post which describes how the sensors are to be interpreted.
You've been given a wiring diagram to follow ?
Have you got this far ?
- The east - west (E - W) traffic light will be green whenever both lanes D and B are occupied.
- The E - W light will be green whenever either D or B is occupied but lanes A and C are not both occupied.
It would look like this in a truth table:
sensorA sensorB sensorC sensorD LightEW LightNS
X HIGH X HIGH GREEN - (from statement 1)
LOW HIGH LOW HIGH GREEN - (from statement 2)
HIGH HIGH LOW HIGH GREEN - (from statement 2)
LOW HIGH HIGH HIGH GREEN - (from statement 2)
etc.
X = don't care
Then you have to complete and refine it.
Edit: crossed with your post.