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