The calculations in this project (CircuitPython) reference the AdatFruit_TSL2591_Library, but the equations do not match. https://github.com/adafruit/Adafruit_TSL2591_Library/blob/master/Adafruit_TSL2591.cpp#L220 This project does take into account the max_count for saturation and sensor overflow, but the source project does not.