I can confirm the that issue was indeed that the window was somehow blocking the signal. It is a triple glazed window. I moved the transmitter to a single glazed window and it worked perfectly.
Thank you everyone for your help.
Thank you for the suggestion. I have done this and it makes no difference.You should try with another poe