Hi Canleglade, Welcome to 2carpros and TY for the donation
Try cleaning both of them out and see what happens-
A P0507 DTC trouble code may be caused by one or more of the following: A vacuum leak
Leaking air intake after the throttle body
EGR valve leaking vacuum
A faulty positive crankcase ventilation (PCV) valve
Damaged/failed/dirty throttle body
Failed EVAP system
Failed IAC (idle air controller) or faulty IAC circuit
Possible SolutionsThis DTC is more of an informational code, so if there are any other codes set, diagnose them first. If there are no other codes, inspect the intake air system for air or vacuum leaks and damage. If there are no symptoms other than the DTC itself, just clear the code and see whether it returns.
If you have an advanced scan tool that can interact with the car, command the idle higher and lower to see if the engine responds appropriately. Also check the PCV valve to see if it's blocked and needs to be replaced. Check the IAC (idle air controller) if equipped, verify it's operation. If available, try swapping in a new throttle body to see if that fixes the problem. On Nissan Altimas and possibly other vehicles the problem may be fixed by having the dealer perform an idle air relearn procedure, or other relearn procedures.