Is the a way to divide a sensor's value by say 3, so that each value range peforms a different task?
For instance we all know that pots have a value range of 0 to 1023, and 1023/3=341. That means we now have 3 value ranges viz;
0 to 341, 342 to 682 and 683 to 1023.
So when the pot has values between 0 to 341, a led comes on, when the values are between 342 to 682, the led blinks slowly and when the values are between 683 to 1023, the led blinks quickly