Comparator logic control from a potentiometer
The +/-15 output swing won't interface well with 5 V logic. You'd be better using a proper 5V-powered comparator. Then it will be easy.
Most comparators will accept inputs down to 0 V. Check the datasheet because that's an important parameter for your application. Don't forget to add a little hysteresis so that it doesn't chatter on you.