Quick IR Question

westfw is 100% correct about the rolloff characteristics. Look in the datasheets.

A while back, I built my own IR proximity detectors that had adjustable detection
ranges, going from about 18" down to 6". I simply varied the driving frequency on
the IR Led from about 32-38 khz, and took advantage of the rolloff in sensitivity.