The easiest way to test an accelerator pedal position sensor is to use a diagnostic computer. Read the voltage going through the position sensor and make sure it gives the correct values when you depress the accelerator pedal position sensor fully. The values are often shown as percentages.