IR sensor how to get continuous ir signal?

If the transmitter isn’t sending anything, the receiver can’t receive it.

What you could try, is ‘saving’ the most recent state that was sent & received, until a different code is received.