Hi I am using opt3001 for measuring light source. I am able to calculate lux value from result register but i want to set high and low threshold value for given lux. Can any one give a simple formula or c code for the same. It is very difficult to have two unknown variables in single formula.