Help new person dim led smothly according to temp

Break the delay down into shorter phases, and use the phases to smooth your transitions