What type of sensor is This?

They look like ultra sonics to me. The ball must break the beam or reflect it.