Have to get an inspection and check engine light is on, the diagnostic is showing both bank 1 and 2 sensors are failing. I can clear the system so the check engine light isn't on but in NYS would it pass inspection? if not are these what I need to buy and replace?
2 for Federal Emissions, 4 for California Emissions. Being that you said bank 1 and bank 2 are bad, I'd venture a guess that you have the California Emissions. I could be wrong as that's happened before (my wife can verify that) so I'd suggest crawling under and taking a look to see what you have before buying anything.
Are the codes showing O2 Heater failures? WJ 4.0s are prone to throwing heater failure codes when the temps < 40F. Not sure about the 4.7. I hate to see you replace good sensors if the problem is software related. What codes are you actually getting?
I saw threads related to the incorrect heater codes and it is well below 40 here in upstate NY but the codes just pointed us to the O2 sensors, not sure what they were and the guy that did the reading has left.
You can clear the codes but often you need to drive a specific amount of miles before your vehicle is able to be tested....after you clear the code. I ran into a similar issue, and made the mistake of replacing my sensors with Bosch...however i found out that the WJ's are very picky about what sensors you put in. The bosch were junk and had to change them after a month, i ended up with going NTK from Advance Auto which seem to be working fine after a year, the codes went away. Mopar sensors were expensive from the dealer and had to be ordered.