Aeon Labs Recessed Sensor; How did you install?

I have a few of these. I installed the sensor in the door frame and the magnet in the door. Mainly because these are exterior doors and the doors are wrapped in metal and I thought there might be signal issues.

Another thing that happened with at least 2 of these for me is that upon pairing they only report open. Excluding and re pairing it a few times solved it for me.

I use this device type