This circuit, from a 1994 publication, shows how to polarize a phototransistor to receive modulated IR radiation or even modulated visible light. The output is compatible with TTL logic and any common phototransistor can be used.