It could be automatic, as shown in the spike maze when you go across it pushes the spikes back up behind you therefor it may just be pressure sensors in the halls, there are many many many options my friend.