The tach sensor is located on the ip gear cover just to the right and behind the oil fill spout. It is the one inch nut with two wires coming out of it. You can remove it anc wipe it clean which might help it, but mot likely you need a new sensor. a Ford only item.
I'm not an auto guy so I can't help on the tps, other than I think it is on the throttle linkage.