Help me!

I am having trouble with my project. I have a pot(10k ohm) hooked into the LCD display, telling me the position of the POT and two buttons to adjust a “set position”. My problem is that, when the POT reaches 89 (beings I mapped it to 0-100) it starts counting up my set position where it should only count that up when I push the button programmed for that. I will attach the code.

HeightMeasure.ino (4.22 KB)

Please take a look at how to use this forum

brettwdmn1:
I am having trouble with my project.

Your program is short so please include it in your Post using the code button </> so we don’t have to download it.

…R

brettwdmn1:
My problem is that, when the POT reaches 89 (beings I mapped it to 0-100) it starts counting up my set position where it should only count that up when I push the button programmed for that.

since you check for a "more" positive voltage, do you have a pull-down resistor?

i think it would be more reliable to use digitalRead() and configure the button pins as INPUT_PULLUP