Karma points always welcome
Do I need to connect the outer inputs to the digital pins instead of connecting to 5V?
I don't know what this means. What are the 'outer inputs'?
Do you think I will be able to have the exact color temperature of a light?
No idea on this one. My use of the sensor is for detecting color, not color temperature. The sensors work by reading the level of reflected light rather than a light source directly. This may not be compatible with reading a color emitted from a colored source. However, assuming that you can read such a source, then there should be formulas that allow you to convert from one to the other. Color space and its attributes is an interesting topic but I am not at all an expert.