Door sensors detect door position (i.e., open or closed) based on the precise gap between the magnet and the reed switch.
Upgrading to a smart lock is a DIY project -- if you know what you're doing. These steps will explain what instruction ...