sierratech:
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.
Hi, you don't have to store your threshold value in an array.
If it is a single number then store it as a single variable.
Tom..