There are lots of infra red devices in industry that operate over a distance, automatic doors being one, their sensors can detect a vehicle or person over 10 meters.
You can make a standard tv infra red receiver work over a good range, 5 meters probably isnt unrealistic.