I was also thinking of using a op-amp as a comparator that was my next try, but i never tought to use the pic comparators.

Thanks for all your inputs guys.