Basic OBD2 code list here:
https://www.therangerstation.com/tech/obd-ii_trouble_codes/
Its not all the codes just the basic codes, there are A LOT MORE
In the generic list(any code that starts with P0xxx) there are 5 Cam sensor codes that each mean something slightly different to the computer
P0340 Camshaft Position Sensor Circuit Malfunction
P0341 Camshaft Position Sensor Circuit Range/Performance
P0342 Camshaft Position Sensor Circuit Low Input
P0343 Camshaft Position Sensor Circuit High Input
P0344 Camshaft Position Sensor Circuit Intermittent
So there is no "cam sensor code", as in just one
And there are no "replace sensor" codes, good work on testing the cam sensor instead of just replacing it
Replacing a sensor that's "mentioned" in a code definition is like "shooting the messenger" sensor is just reporting there is a problem not always that "its" the problem
But need exact code number to start with
There are also these Ford Cam sensor codes
P1174 Cam Sensor Fault
P1175 Cam Control Fault
P1176 Cam Calibration Fault
P1177 Synchronization Fault
While P0xxx are generic and used by ALL car makers, its the Law, the P1xxx codes are car maker specific, in this case/list they are Ford specific
You can get a $15 Bluetooth OBD2 reader(ELM327) that works on any vehicle 1996 and up that uses a free APP on your phone as the display, or a $5 APP
You can read and clear codes and also watch Live Data with engine running, great tool to have in the box
And not Ford specific, all vehicles sold in US/Canada from 1996 and up must use standard OBD2 communications, even in 2023
Reason you want it is so you can do a repair and see if THE SAME code comes back
You could fix the original code but cause a new code in doing the repair
With just the CEL coming on you can't tell, "oh must be the same problem", but might not be, lol