p0340 cam pos sensor circuit, pcm does not detect cmp signal while engine is running, emi from coil/wires could cause poor signal condition.
p1125 accelerator pedal postion (app) system, this dtc is just telling you that the sensors are out of range or dissagreeing with each other, this will give you reduced power mode, look at the two codes under this one first
p02125 accelerator pedel position sensor 2 circuit. voltage went out of range (less then .13v or more then 4.87v) check app sensor2 signal and 5v reference for open, high resistance, short to voltage or ground, ensure there is a good ground circuit. If circuits are good suspect a failed accelerator pedel assembly or a pcm.
p2138 same as above but voltage difference between app sensor1 and sensor2 exceeds predetermined (both sensors are located in the pedel assembly)
get a better picture of that part looks like a simple relay but i cant see what that is, also where did you find that in the engine bay