Reading the position of a flex sensor to set a limit

TomGeorge:
Hi,
Does you code work as in the post above, to sound buzzer on exceeding threshold?

What do you want to put in the array?

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
How have you got your button wired?

Thanks.. Tom.. :slight_smile:

I want it to set the value of the current position when the button is pressed or when powered up then use that value as the "boundary" point where if that's met or exceeded then the alarm sounds and continues to sound until the button is pressed to reset the value or the flex sensor is moved to the "safe" position.