Thank you. Not sure what brand/items you used.
I noticed this on an Amazon review. Pretty nifty hack, to add to a door sensor (i.e.if starts to leave the house)
Honeywell RCWL330A1000/N P4-Premium Portable Wireless Doorbell / Door Chime and Push Button
Works great, but needs modification for window door alert. https://www.amazon.com/gp/product/B01MEBX04S?ref=cm_sw_em_r_lb_dt_tBnP4yIKmjndA