Unless you replaced the Arduino with another faster board etc, I can't quite see how you can categorically say its the Arduino and not your algorithm
You have not explained what algorithm you are actually using.
Please post details what algorithm or method you are using
Can you post your whole program (ino file as an attachment)?
[/quote]
I am sorry if misunderstood... when i say it is the arduino i do not criticise the board but that the problem comes from the digital part for sure. Of course it is the code that messes up the thing and that is the reason why i am asking for your help. I know that i am not an expert so please be patient...
Tomorrow i will post the code in a file and info pictures from the measurements. Thank all of you for your support!