Hi Scotty good day I have a question I own a Honda accord 1994 and I got a code tps sensor adjust it to 5 volts starts up fine then stalls after 5 mins then I set the tps to 0 volts and it starts up fine what is the cause of this thanks
Seeing as how that thing is over three decades old the problem could be any number of things, bad wiring and/or grounds among the top contenders.
It might help if you let us know what the actual code is (presumably an OBD1 code for 1994) as well as what engine and transmission you have and the vehicle's mileage, per the posting instructions at the top of the page.
You might find information in a repair manual for that car:

@chucktobias it is a honda accord 1994 lx 4 door sedan f22b 4 speed automatic it only has two codes a code 7(tps) and a code 31(A/T FI Signal B)