I've spent a little time learning about comparators. Next steps for me are to try and learn about hysterisis or differential (lots of meanings for both words). I'll be doing that with a breadboard, scope, etc.
What I am worried about is having the comparator toggle back and forth when the reference and the inputs are very close. I understand that I can add some components (resistors) that will increase the difference. What I will be doing is measuring how much my input voltage varies, given the conditioning, and adjust the differential so that my circuit doesn't sit there and chatter - hopefully remaining sensitive enough for the intended use.
Your application may be such that the differential is not of concern.