What is the fuction of a throttle position sensor?

The function of a throttle position sensor is to monitor the position of the throttle in an internal combustion engine.