Protection device for stair deficiency

Sensor is installed in rotation of stairs of escalator; then there is deficiency of stairs, the escalator will stop operation