Photoelectric Gate Limiter with Magnetic Sensitivity