LM339 is a comparator IC with four inbuilt comparators. A comparator is a simple circuit that moves signals between the analog and digital worlds.