Measurement Phase
The algorithm is based on the period measurement (starting from lean to rich sensor transition). To avoid non-representative measurement, the period is valid only if the sensor has been below a low threshold and above a high threshold between 2 consecutive lean/rich transitions.