Dual Beam Infrared beam break Alarm sensor. Can be used to e.g. prevent a gate closing while a person or vehicle is crossing through.
eBay