IR sensor from other devices, on arduino

let's say that I point a IR LED turned to the IR receiver, then this should be like in a status 1 ... if an object pass between the LED and the receiver, this should prevent the IR to get to the receiver which then be on a status 0

Thats the general idea that I had ...I dont know if is impossible for some reason, like a noisy IR ambient wich could keep the receiver in a 1 status ( is that make sense ? :D)