I assume it's a mechanical switch to stop the door closing. But the control box won't run the motor unless it's getting a continuous OK from the sensor. I haven't tried this, but I assume the tip of your foot under the door edge as it closes is enough to stop it (in fact it reverses the motor and the door opens).
The sensor can be adjusted to be more/less sensitive; if over sensitive then what happens is the door descends and will suddenly (when part way down) stop and reverse.
First step is I'm going to measure the current both quiescent and when the door is moving to see if the figures match the spec. Ha, turns out my trusty little Radio Shack DVM bought in downtown NY 2 weeks before 9/11 doesn't do amps, so zeroth step is to rememdy that lack.