You can also get pretty check 24ghz radar that does reliable sensing till like 3m. Much much more accurate than the IR based stuff
I think the original use case is not to know whether a dining hall is occupied at all but about how occupied it is (and if he should go to lunch now or wait another 20 minutes).