Blue tit

Hi,

I live in a 1st fllor flat and a blue tit appears to be very attracted to my external balcony rail; not only that but if I leave the bedroom window open it will fly in and deposit it's droppings.

Is there anything I can do to prevent this?

Cheers,

Dave