Or you can use a comparator with push-pull outputs (TLC3704), and wire the LEDs between two outputs, plus one LED from the top comparator to the V+ supply and one from the bottom comparator to the V- supply. That way you can indicated five states in dot mode with only four comparators.The circuit in #18 produces a bar graph type display. As the soil becomes more and more moist, more and more LEDs come on. With saturated soil you will see 4 LEDs. If what you want is a dot display, where only one LED is on at any time, then you either add some logic between the comparator outputs and the LED drivers, or change the four comparator circuits from a simple level indicator to what is called a window comparator. Each LED is on only when the input is within a window of two values. This takes two comparators per window. It is a bit more complex, but uses less battery power because only one LED is on at a time.
ak