def calcColorAdj(variance):     # Calc the adjustment value of the background color
    factor = 42.5;
    adj = abs(int(factor * variance));
    if adj > 255:
        adj = 255;
    return adj;
Because there is 6 degrees mapping to 255 values, 42.5 is the factor for 12 degree spread
dataset/ETHPy150Open DexterInd/GrovePi/Projects/Advanced_RGB_LCD_TempAndHumidity/grovepi_lcd_dht.py/calcColorAdj