Thank you for the ideas
No he doesnt go through a flap, it is just a sliding door that is open all day when the weather permits.
I could place one sensor on the edge by the door and another further out so that it stos him just messing it up by peeking out.