the ones in the building i used to work in were mechanical and had to have motion detectors AND weight detector pressure plates in the floor because it turned out if a student stood or sat too still in the aisle the motion detector stopped registering them and would let the shelves crush them
i don't like to police genre, but it's not dark academia unless somebody gets squished in one of these bad boys