Unless you can connect it to SmartThings you’ll have to use some sort of an external device.
For example you can connect a contact sensor to your door so it’ll trigger when the door opens. Now you can use that contact sensor to trigger a routine or scene.
You can also use a strip contact sensor for your door.