BH1749 driver
You can use the BH1749 driver to measure the illuminance and color temperature of ambient light. BH1749 is a color sensor IC that senses Red, Green, Blue (RBG) and Infrared and converts them to digital values. See BH1749NUC-E for more information about BH1749.
The BH1749: Ambient Light Sensor IC sample demonstrates how to run this library in an application.
API documentation
Header file:
drivers/sensor/bh1749/bh1749.h
Source file:
drivers/sensor/bh1749/bh1749.c