Reading the position of a flex sensor to set a limit

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Why do you need an array?
Does your code work?

What is the application?

Thanks.. Tom.. :slight_smile: