With the throttle position sensor connector disconnected, check the circuit between terminals 3 and 4 of the throttle position sensor connector.
When the pedal is depressed, the resistance of the sensor should be equal to infinity, and when the pedal is released, it should be «0».
If the condition of the circuits is not correct, replace the closed throttle position sensor.