I have been googling this but I cant seem to find out how.
How in Arudino do you take the last few outputs and then if within a range (e.g. ones within 10 of the last, or last three outputs within 10 of each other) check that they are within 'X' (any number) range of each other?
I know you can debounce switches but this checks if equal above or below something - can you do this for analogue readers all at once (equal above or below 'X')? (sorry using the logical thinking)