Renegade will not idle and code p0505

Had this issue before cleaned the idle valve didn’t fix it, not sure what fixed it but it just came around after trying it a few times, done it again now I think because his air intake shield is off and we were in fluffy snow, but cleaned it again checked the filter all grounds installed a new battery running out of things that would make it not idle and put it into limp mode