Our front door is tricky and has a gap of 1" between the door and the trim (so, the door isn't flat with the wall).
I was able to get these (barely) between the door and the frame in a certain spot, where I couldn't get a stock Iris contact sensor magnet