Image sensor for measuring illumination, proximity and color temperature