https://epro.pk/lm393-comparator-pullup-threshold-selection/