Detecting varying PWM states

Yeah good idea I tried this but it takes so long to detect a second high point. Maybe I should just separately monitor the battery voltage directly from the arduino?