Removed useless code.
Rise exception if illuminance limit is reached.