LED as a temperature sensor