Detecting an object passing a door

I need a sensor that sense a human (or an object) that passing a 1,5 meters wide door.

Can I use that robotshop.com/sharp-gp2y0a02yk0f-ir-range-sensor-2.html for detection?

Any suggestions are welcome.

Thank you so much Cbenson. Your suggestions are very helpful for me.

That sensor will tell you if something crosses its field of view, and at what distance. In addition to the sensor, you’ll need a microcontroller. It’s probably the best (and least expensive) option.