2004 Nissan Sentra P1138 code, need to get smog done

Hi,
I have a 2004 Nissan Sentra that has check engine sign coming on. It has about 85,000 miles on it and I need to get smog done to renew the registration. I took it for smog check but the smog guy told me that he will not test since there is a check engine sign on. He also plugged in his machine to find out check engine sign code. It showed to be P1138. I did google search and it looks to be swirl valve. I am looking to find out what the cost should be to fix this? Also most article say that if drivability is not affected I don’t need to fix it, but then I need to have the smog test to pass. Will I be able to get smog test passed with out fixing it or will it not pass with check engine light on?

Depends on the state, but usually you cannot pass with the check engine light on. And did not the “smog guy” already tell you that?

If the Check Engine light is on, the vehicle will fail the smog test.

Here’s the details on the swirl valve sensor.

Tester

It will not pass as far as I know while throwing a code. It might be something a dealer might be the best bet for proper diagnosis and repair.

Thank you guys. I’ll see if I can take it dealership and get it looked at.