>>and how fast does it change?
Looks like its repeating every 14ms on one end and 6.5 on the other end.

>>will this help to do few reading and do and average... but reject those >>which are to away of the midpoint...

I'm not sure if that would work here

>>How about using count... or an internal timer?
I am not sure how to do that with the signal im getting.

>>what's the most important? the frequency or the duty cycle?
In this case I think its the frequency that matters. But I don't know how to get the freq from picbasic.