i got a 2000 xterra 3.3 4x4 with a problem at random it will sputter and die ,i pull the obd2 codes come up mas air flow sensor and knock sensor. i replaced the maf reset the computer and still got the same error code, any help would be great
Cool, when you get them, post them in the order that the computer gives them out. The computer generally gives the primary code out first. Not the case always, but generally it is.
If you are getting a P0171, P0174, start looking and listening for a vacuum leak. if the Xterra has a PCV valve, the hose going to it is a good place to look. (Have replaced alot of them on several Ford models)
Circuit malfunction, which usually leads to the sensor itself, but not in your case.
Any modifications done to it recently? I would follow the harness from the MAF sensor as well as possible and make sure it hasn't been rubbing on any metal, possibly shorting it out. Also check harnesses all around the engine that look like they may be rubbing on something.
Tracing something like that is a pain in the ass. A harness can rub through and make such a tiny opening in the wire that you can hardly see it. What you usually end up seeing first is sniny spots on the metal where the harness has been rubbing, and little marks that show where there have been electrical arcing going on.
Oh, and before you go crazy looking for something like this, make sure the wires are good at the MAF connector itself. I have seen the wires break inside the insulation, also seen the connectors get spread out where they simply are not making good contact.