If you want to get the temperature of the star, you need a bit different technic for that. XD
Cheers, Kari