Have a 2005 Nissan Sentra 1.8s got code P0507 before I did anything car was idling around 500rpms in gear and rough put in neutral ran smooth. Car drove fine just a little rough idle when I stopped at lights. Cleaned throttle body and mass air flow sensor car would rim up high to 2000rpms on first start then idle down but still idling high around 1500. Then took off throttle body and cleaned it real good then it started rimming up and down between 1500 and 2500 rpms. Put new throttle body on still doing the same idles high on first start up then comes down to 1500 but start trimming up and down like before have tryed reprogramming the idle control valve. Checked for vacuum leaks can't find any what is my problem.
Definitely needs to have the idle programmed after it’s manually cleaned