State machine created. TSL2561 ISR workaround implemented