Using the potentiometer as an alarm activator

Is there a way to make a potentiometer work as an alarm activator. I need to enter 2 different values on the potentiometer to activate the alarm and the same 2 different values to deactivate the alarm. pls help thanks.

I don’t think I follow your question? Are you trying to make something like a padlock where you rotate to certain values to get it to trigger some effect?


yes that is exactly what I am trying to do