0-10v Analog to Digitial

Just thinking of the hysteresis problem: voltage divider using a fixed resistor and a pot + 5V Schmitt trigger + clamping diodes to protect it from >5V on the inputs should settle that.