A throttle position sensor (TPS) is a sensor used to monitor the air intake of a engine. The sensor is usually located on the butterfly spindle/shaft so that it can directly monitor the position of the throttle.
Some engine control units (ECUs) also control the throttle position electronic throttle control (ETC) or "drive by wire" systems and if that is done the position sensor is used in a feedback loop to enable that control.