How to make dynamic led strip depending on values

I have a set of values and I was wondering if there is a tutorial on how to make them dynamic on an LED strip depending on their values.

E.g when the value of the sensor reads 0-30 the colour will be green, when the value of the sensor reads 31-60 the colour will be orange etc.

There are so many tutorials on google that it's so hard for me to find this specific on. I hope you can guide me in the right direction or at least on where to start looking.

Thanks

It's always about understanding code that you find. Once you understand it, it's relatively easy.

Which ledstrips do you use? Addressable?

Anyway, this would be the framework

void loop()
{
  get reading

  if (reading < 30)
  {
    set led colour to green
  }
  else if (reading < 100)
  {
    set led colour to red
  }
  else
  {
    set led colour to purple
  }

  update leds
}