Just a LED and resistor on the digital output. That part worked fine but setting the threshold was the problem. Too much hysteresis between on and off.
I agree with crutschow's implication. A comparator will fix that "hysteresis" problem. It's not really hysteresis but w/e.