Limit Switch Working

Limit Switch Animation

what is the working principal of this limit switch? Generally we use it in limiting travel of a door, Traditional