Ambient light and color temperature sensor?

I was wondering if anyone has already a solution to this problem:

Finding an ambient light sensor that also measures the color temperature and connecting it to a wled controller so that the light strips can match the exact current color temperature of the ambient lighting.

First problem is finding such a sensor. All I could find are industrial sensors for industrial prices.

Second problem is connecting it in a proper way.

Third problem is proper calibration

And forth problem is: how would wled control the whole scenario? Is there a module?

you need to write a usermod for that.