Add punctuation: If an object enters the detection zone the light beam is interrupted and a switching signal is generated
If an object enters the detection zone, the light beam is interrupted and a switching signal is generated.