Let us consider the following example. Suppose a group of astronauts has discovered a new planet. Now to know if a human race can begin there, we'll have to take a couple of things into consideration. A few obvious factors would be, whether the water exists, the temperature, flora, and fauna exist, etc. Let's have a look at how to make a decision tree based on these factors.
The habitable temperature falls into the range of 0 to 100 Celsius.
Whether water is present or not?
Whether flora and fauna flourishes
The planet has a stormy surface?
And we have our perfect decision tree!