Detecting varying PWM states

What’s the scale of the waveform you show ?