Detecting varying PWM states

Yeah, but in this case even a single MOSFET may do.