i have i small problem here with my project and need your help. Im moving a step motor forward and back with buttons and an end stop is an inductive proximity sensor. So now if the inductive sensor is triggered i would like the start button to be lets say disabled until the sensor switches to high state again. But for some reason even if the sensor is covered arduino always gives priority to the button instead of sensor.
To be honest im a beginer at all this, but it doesnt make much sense to me that if something is triggered before something else, why would something triggered after have priority.
So the question is how can i make arduino ignore the data from the button pin or some other solution during the sensor is covered?