Create an interval with Comparison element

I want to create an environmental sensor using NXP Rapid IoT board and I want to set the RBG led to display some colors depending the eCO2 sensor values.
I can not figure out how to use the Comparison element in order to create 2 or 3 intervals, in order to set RGB to green, blue and red.
Any ideas will be appreciated.

Thank you,