i think they use either movement detector or maybe a camera that detects incoming objects...
good tech these days, maybe next time doors are like that but with faster reaction to these people coming in and not so slow like what u saw there
cheers! and tech FTW
............................................................................................