Process control or regulation for heat treatments