while True:
    print("temperature " + input.temperature(TemperatureUnit.FAHRENHEIT)) and " °F"
    if input.temperature(TemperatureUnit.FAHRENHEIT) > 41:
        light.set_pixel_color(0, light.rgb(250, 0, 0))
        light.set_pixel_color(1, light.rgb(250, 0, 0))
        light.set_pixel_color(2, light.rgb(250, 0, 0))
        light.set_pixel_color(3, light.rgb(250, 0, 0))
        light.set_pixel_color(4, light.rgb(250, 0, 0))
        light.set_pixel_color(5, light.rgb(250, 0, 0))
        light.set_pixel_color(6, light.rgb(250, 0, 0))
        light.set_pixel_color(7, light.rgb(250, 0, 0))
        light.set_pixel_color(8, light.rgb(250, 0, 0))
        light.set_pixel_color(9, light.rgb(250, 0, 0))        
    elif input.temperature(TemperatureUnit.FAHRENHEIT) < 0:
        light.set_pixel_color(0, light.rgb(0, 0, 250))
        light.set_pixel_color(1, light.rgb(0, 0, 250))
        light.set_pixel_color(2, light.rgb(0, 0, 250))
        light.set_pixel_color(3, light.rgb(0, 0, 250))
        light.set_pixel_color(4, light.rgb(0, 0, 250))
        light.set_pixel_color(5, light.rgb(0, 0, 250))
        light.set_pixel_color(6, light.rgb(0, 0, 250))
        light.set_pixel_color(7, light.rgb(0, 0, 250))
        light.set_pixel_color(8, light.rgb(0, 0, 250))
        light.set_pixel_color(9, light.rgb(0, 0, 250))        
    else:
        light.set_pixel_color(0, light.rgb(0, 250, 0))
        light.set_pixel_color(1, light.rgb(0, 250, 0))
        light.set_pixel_color(2, light.rgb(0, 250, 0))
        light.set_pixel_color(3, light.rgb(0, 250, 0))
        light.set_pixel_color(4, light.rgb(0, 250, 0))
        light.set_pixel_color(5, light.rgb(0, 250, 0))
        light.set_pixel_color(6, light.rgb(0, 250, 0))
        light.set_pixel_color(7, light.rgb(0, 250, 0))
        light.set_pixel_color(8, light.rgb(0, 250, 0))
        light.set_pixel_color(9, light.rgb(0, 250, 0))

        

            