Stacking sliding glass door - sensor?

Thanks, Tyler. That slim sensor might work.

The frame is metal, and I’ve been worried about drilling into it.