If the problem was solved, then the light would go out.
To clear the codes, you need a scanner.
Trouble codes no not say to replace sensors. They say to check that circuit. If you just replaced the sensor, then you probably wasted your money. We need to know what the trouble code number is.