Reading and writing PWM signals

Use analogRead(pin) for the four different pins.

And how is that going to work?