Some ideas about this here:
Infrared Proximity Sensor
http://www.g9toengineering.com/AllSa...dproximity.htm

-Adam-