3 things come to mind:
TPS, Brake switch adjustment & trans temp sender.
Switch adjustment is easiest: push down on the pedal and pull the switch plunger out as far as it goes (it will ratchet). Let the pedal back up and it will self adjust.
Trans temp sender: check resistance hot and cold.
TPS: try the fix above. If not fixing it, remove and carefully disassemble and clean. Sometimes there will be a carbon build up on the contacts.