Agree. Not enough info yet.
Your comparator idea might work in any case if it is basically the frequency that matters, which seems likely.
Bob
The signal from the sensor is AC, and must be at least 5 VAC strong to the PCM, or the code will be set and the light comes on.