The current code has a bug. The option GAIN_DIVIDE_6 is set to true however gain is set to 16x and those don't go together as already the comments says right at the GAIN_DIVIDE_6 code line.
So that option needs to be set to false.
Then the Lux values are correct. Before the fix they were a magnitude too low.