Depends on if it's a weight sensor to open, which seems to be what's hinted at in a lot of manga, or a visual sensor like we have here in the States. Or if the door just gets stuck for some odd reason, it's a machine, machines will do as they please.