You may need to think about when you want the piston to run.
As ‘stays’ is classed as a trigger, the piston has subscribed to the door lock and will fire whenever the door is locked or unlocked (the lightning bolt symbol shows you the lines where there are subscriptions).
To cut a long story short, once it fires it will check if the door is unlocked and stays that way for a further two minutes, and at that point it will check if the door is closed and go on to lock the door if it is.
Is that really what you want? @guxdude has offered an alternative where it is the door being opened or closed that fires the piston and if the door is closed and stays that way for two minutes, then the door is locked if necessary. That makes more sense to me, but then it isn’t my door.