I have motor which is rotating a shaft. I can rotate it only for 200 degrees so I am planning to use Hall sensors and magnets on shaft to determine upper and lower rotation limits. The catch is I don't want to waste two analog pins for this. So, what is the best way to connect two Hall sensors to single analog pin so I would know when one of the limits is reached and if it is upper or lower?
The Hall sensor which I use outputs 1.6 V without magnetic field and goes 1 V down or 1 V up when I bring magnet close other way around. Supply voltage is 3.3 V.