Convert string of variable length to floats.

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);
}