I wolud check the code with a techII scanner so you can read the data stream because it might not be the sensor it could be something else giving you the code
RepairPal Certified shops can diagnose and repair your 1997 GMC C1500 Suburban. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.