trying to join two codes

hi everyone, i am trying to put these two codes together someone would be so kind to help me
im using arduino uno board

1.ino (1.96 KB)

PID_PHOTORESISTOR.ino (3.2 KB)

What have you tried already?

(deleted)

(deleted)

(deleted)

I'm basically trying to use pid to keep pressure constant with two pumps but I also want to alternate the motors so every time the signal pwm is 0 one led will activated pin 12 to alternate every cycle