Turning LED off quickly after motion sensor trigger.

Your problem is going to be that PIR motion sensors latch for a period after being triggered so you may not be able to get a fast response out of them to indicate when the object has passed out of view.

You may be better off with an infrared proximity sensor for example: Infrared Proximity Sensor - Sharp GP2Y0A21YK - SEN-00242 - SparkFun Electronics