Infrared Safety Beam Sensor for Automatic Gates