I am not sure about putting a lock on the door to prevent wandering. It is a metal, hollow door. I have been looking at motion sensors--but worry that since we live in a building of condos, it might go off even with people walking outside by the door. My husband, as yet, has not wandered...but trying to be pro-active.