Send data of DHT via softmoden

Help me, I need send string and temperature using softmodem.
I need send the value of variable float temperature using modem.write function. But I’m in doubt how to do, I’m just getting send variables of type char.

#include "DHT.h"
#include <SoftModem.h>
#define DHTPIN 2
#define DHTTYPE DHT22

SoftModem modem;
DHT dht(DHTPIN, DHTTYPE);

int dat1;
float temperature;
char *p = "temperature";

void setup()
{

  modem.begin();
  dht.begin();
  Serial.begin(115200);
  Serial.println("sending...");

}
void loop()
{

  temperature= dht.readTemperature();

  if (isnan(temperatura)) {
    Serial.println("Erro ao efetuar leitura do sensor!");
    return;
  }


  for (dat1 = 0; dat1 < strlen(p); dat1++) 
  {
    modem.write(p[dat1]);
    Serial.write(p[dat1]);
    delay(50); //manter valor 100, definido por teste
  }

  modem.write(temperature); <<<<<< DONT WORK!!!!!
  Serial.print("\n");
  delay(6000);
}

What is the problem? "Doesn't work" is meaningless to us.

Hint: please read and follow the instructions in "How to use this forum".

I need send the value of variable float temperature using modem.write function. But I'm in doubt how to do, I'm just getting send variables of type char.

You need to convert the temperature into a character string, and send that.

If temperature is a float variable, use the function dtostrf().