def METHOD_NAME(prev_brightness_val):
    current_lsv = su.light()
    current_brightness_val = map_range(current_lsv)
    # uses the previous value to smooth out display changes reducing flickering
    brightness_diff = current_brightness_val - prev_brightness_val
    brightness_val = prev_brightness_val + (brightness_diff * TRANSITION_RATE)
    if brightness_val > 1:
        brightness_val = 1
    elif brightness_val < 0.1:
        brightness_val = 0.1
    return brightness_val