The flagging transmitter only works when right next to the receiver.

In a noisy radio environment, removing the antenna from the receiver can help, as per Linear Systems. You should hear the relay click from a distance, and the range should now be up to 75 feet.