Well - get rid of the delay(1000); // ATRASO EM MILI SEGUNDOS PRA ESTABILIDADE in your loop and things will go faster...
Also check the missing {} for the if the temp is in between min and max... that’s probably an issue
Should look like this
if (condition) {
Instruction1;
Instruction2;
Instruction3;
}
if you do
if (condition)
Instruction1;
Instruction2;
Instruction3;
then only instruction1 is conditional, Instruction2 and Instruction3 will always get executed (regardless of indentation)