Changed source of signal from internal comparator to external (lm339)