thank you for everybody, i got the problem fixed by improving the rectifier sircuit after the op amp and before the PIC everything works good now

Thanks again for everybody's advice