engine trouble light is on on 2003 GMC Sierra 1500 HD

I have a engine light test guage it comes up as PO0155 02 Sensor Heater Circuit Circuit Malfunction (Bank 2 Sensor1)Can I repair this myself? I need to get the truck a smog test but can't because the engine light is on. I had it smog tested and it failed. Can you help me Thanks Woody

Asked by for the 2003 GMC Sierra 1500 HD
Most likely it's that the sensor heater is faulty. I'd disconnect it and check it with a meter before I bought parts. I'd think you should see something between 3 ohms and 15 ohms for a good heater.
PS: good idea to tell us which engine you have in the future.