alexan_e
Administrator
if it takes a few seconds then the input is probably read a few thousand time before the wrong data happens so I wonder why at that particular moment, do you have anything else in your code that could interfere in the reading process, any interrupt or some other peripheral?