The sensor at {TAIL ~ each station} detects {HEAD ~ the arrival} or departure of each customer 
The sensor at { TAIL ~ each station } detects { HEAD ~ the arrival } or departure of each customer
OTH OTH OTH TAIL TAIL TAIL TAIL TAIL TAIL OTH HEAD HEAD HEAD HEAD HEAD HEAD OTH OTH OTH OTH OTH