changed my O2 SENSOR 1 BANK 1, why is the same code coming up P0135 ? on 1998 Nissan Maxima

Could gasket leaks cause the failure in sensor ?

Asked by for the 1998 Nissan Maxima
its not uncomon to get a new sensor out of the box thats defective/there could also be a short or open circuit.