That's all you're asking the program to do! Try:
for (uint8_t i = 0; i < n; i++)
{ temperatura = atof(buf);
Serial.println(temperatura);
}
That's all you're asking the program to do! Try:
for (uint8_t i = 0; i < n; i++)
{ temperatura = atof(buf);
Serial.println(temperatura);
}