A pedal position sensor is a device that measures the position of the pedal in relation to the rest of the vehicle. The sensor is usually located near the pedal assembly and sends a signal to the engine control unit (ECU) indicating the position of the pedal. This information is used by the ECU to adjust the engine speed and torque output accordingly.