Infrared detection distance
The easiest options would be to get either a more powerful LED or a larger, more sensitive phototransistor (or a photodiode).

Harder but potentially more effective at very long range would be to add an optical system to collect light and relay it onto a detector.