A snorkel won't make your truck throw codes.
It is possible that you have a leak in your intake system somewhere after the maf. Try spraying carb cleaner around the throttle body and intake, if the motor revs, you found your leak. It's also possible your maf is bad but instead of throwing parts...