through-beam sensor