slow load time of dht11 via bluetooth

Hi,

Whan i prees the "get data from dht11" button in my app via bluetooth - is take aprox 4-6 sec to load the data from the dht11 sensor.

What can i do to improve the load time of the dht11 via bluetooth?

all the ohter parts work fine...

 else if (state == 't'){

          int t = (int)dht.readTemperature();
          Serial.println(String(t) + ".0°c" + " - " + (h) + "%");

Thanks

A.S

Cross-post deleted.

Whan i prees the "get data from dht11" button in my app via bluetooth

What app?
Post your code.

The dht.readTemperature() call will take some amount of time, unless you use the non-blocking process described in the source code.

Of course, if you do that, you would not be calling the function because you got a 't'. You would be sending the latest reading when you got a 't'.