If it helps you feel better, I don't know if the sensor needs to be replaced or if another condition exists that is causing out of range O2 sensor data. A trouble code by itself is rarely enough information to go on for that kind of determination.
Because you only give the two code numbers, I'm going to assume that they are continuous memory codes, that the EEC-IV system passed the KOEO portion of the test, and that you haven't run the KOER test yet. If my assumptions are correct, the next thing I would do is perform the KOER test to see how intermittent the fault is.
There's an interesting contradiction between those two codes. 176 indicates a lean reading (O2 signal <0.4 V) and the 177 indicates rich (>0.4 V). If it passes the KOER test, I would clear the continuous memory codes (disconnect jumper anytime during KOEO or continuos memory code output), drive the truck until the CEL comes on, then check the codes to see if a) the 176 comes back, b) the 177 comes back, c) both come back, or d) something else comes back. I might even do it three or four times to see if it gives me a consistent answer.
In addition, you could put a fuel pressure gauge on the fuel rail to make sure the fuel pressure is where it should be. Also make sure the fuel pressure regulator isn't leaking into its vacuum line.