You could keep reading the values, save them in arrays and then compare both values of the arrays of the same index. Sure, there will be some small delay, but it is an easy solution.
You could keep reading the values, save them in arrays and then compare both values of the arrays of the same index. Sure, there will be some small delay, but it is an easy solution.