Change colour of circle when temp is between range

I have a - sensor.temperature_158d00022c8b2b . When this is between some values i want to change the colour of a circle around it. My circle ID is kleurdressing

so in floorpla.yaml I need something like this I think ?

        if (temp < 15)
          return "temp-in-very-low";
        else if (temp < 19)
          return "temp-in-low";
        else if (temp < 21)
          return "temp-in-good";
        else if (temp < 24)
          return "temp-in-high";  
        else
          return "temp-in-too-high";
        ' 

and this in my css
.temp-in-very-low {
fill: #9bdbeb !important;
fill-opacity: 1 !important;
}

.temp-in-low {
  fill: #07da8d !important;
  fill-opacity: 1 !important;
}

.temp-in-good {
  fill: #54dc49 !important;
  fill-opacity: 1 !important;
}

.temp-in-high {
  fill: #dc5e49 !important;
  fill-opacity: 1 !important;
}

.temp-in-too-high {
  fill: #b01e06 !important;
  fill-opacity: 1 !important;

}

What next ?

Nobody who can help me a little further ?