How can this work as a flash meter?
You code says its measuring time in milliseconds, and the fastest measurement this sensor can do is 16ms!
While camera flashes operate in 0.05-10ms range. There is no way you can use this sensor to measure camera flashes accurately. You would need to be able to take measurements in microseconds, and measure time in microsecond resolution.
How can this work as a flash meter?
You code says its measuring time in milliseconds, and the fastest measurement this sensor can do is 16ms!
While camera flashes operate in 0.05-10ms range. There is no way you can use this sensor to measure camera flashes accurately. You would need to be able to take measurements in microseconds, and measure time in microsecond resolution.