Your alternator is a 3-wire. 1 for battery hookup (charging post), one to turn the alt on (L terminal), and one for the PCM to sense alt output/load (F terminal). P01638 means the alternator is not putting out what it should. Or at least it's not telling the PCM. Which could trigger the others because they are voltage dependent. Although the temp sensor is only 5V. Could be a bad alternator, bad connection between the alt and the PCM or bad PCM. Or it could be 3 separate issues.
Look at the connector to the alternator carefully for corrosion or damage or looseness. Check the O2 fuse. Check the connector to the temp sensor. Look at the O2 sensor wiring for heat damage.