So now that you have learned an expensive lesson buying a part that was not needed here is some advice.
A CEL code is a place to start doing diagnostics. If you just start buying the part that the code says you will go broke. The code is where a problem was sensed. Yes many times it is the failed part but not always as you have just learned.
find a repair manual, preferably the real deal toyota one. In there will be diagnostics to do for each code. Do not buy parts before doing those tests.
O2 code can be any number of things up stream. A EGR problem can trigger a o2 code because the o2 sensor saw the expected mixture is out of range and the ECM can't compensate for it. An exhaust leake before or between the up stream and down stream o2 sensor can also be a reason for a o2 CEL.
Now did the code come back before it was at full temp? That could indicate a wiring problem. In typical operation the O2 sensor doesn't come into play till at full operating temp and at steady cruise. So if it's coming on before you get out of your drive that again indicates wire or ecm.
OBDII is a little better at pointing you to the problem then the OBDI on your truck but you got to do the tests to be sure.
There are a bunch of dead links for the FSM after toyota got wind of how many of their manuals gto scanned and were posted online but if you keep hunting and looking for sites that have cashed sites on line you may get lucky and find it.
As for the blue smoke...valve guide seals. It's unlikely it could burn enough oil to kill a o2 sensor without you have to add a quart every tank. If it hasn't blown the HG yet and it's only at start up...run it to the HG blows or just plan on doing the HG at your leisure.