Sharp infrared sensor type GP2Y0A710KOF this is one of the products proximity sensor or proximity sensor that can work up to 100-550cm.
sharp infrared sensor is suitable for you to apply as: gate sensor, sensor sick, etc.
analog signal output. The distance measuring sensor is a sensor from the infrared LED the position sensitivity of the detector signal processing circuit the measurable distance 100550cm.