NYS Inspection w check engine light on

If you live in an area that test “emissions” then a CEL that is on will automatically “fail” the car. You didn’t notice the CEL was on prior to the inspection; does that mean the light wasn’t on or that you just didn’t pay attention to it?