SOLVED: How do I best make 4 states of two sensors?

The result can be seen here:

Next step is temperatures etc.
I haven’t figure out how to use the sensor value for the picture, so for now, I’ve just changed it to 0-3 as value, and then a state picture in the card.