This is a simply Infra Red Beam Break Detector.
It uses a phototransistor, potentiometer, schmitt trigger and IR LED to detect when a hand is present.