What is the function of Limit switch in a Valve?

Limit Switch is connected to the actuator or valve providing a positive signal when the valve reaches a pre-established position.