Thingsboard floating values using esp32

Hi!
I am using selfhosted thingsboard community edition. I have connected DS18B20 (temperature sensor) to ESP32 and I am coding using the arduino IDE.
I am using the example code esp32 in the thingsboard documentation (here). I modified a little bit to be able to get readings from the DS18B20 sensor.
The telemetry sending part of my code looks like this

if (millis() - previousDataSend > telemetrySendInterval) {
    previousDataSend = millis();
    tb.sendTelemetryData("temperature", averageTemperature());
    tb.sendTelemetryData("rssi", WiFi.RSSI());
    tb.sendTelemetryData("channel", WiFi.channel());      
    tb.sendTelemetryData("bssid", WiFi.BSSIDstr().c_str());
    tb.sendTelemetryData("localIP", WiFi.localIP().toString().c_str());
    tb.sendAttributeData("ssid", WiFi.SSID().c_str());
  }

The averageTemperature() function looks like this

float averageTemperature() {
  temperatureSensor.requestTemperatures();
  float readings = 0.0;
  int i = 0;
  while (i < READINGS_COUNT) {
    Serial.print("[.] Temperature in Celcius: ");
    readings = readings + temperatureSensor.getTempCByIndex(0);
    Serial.println(temperatureSensor.getTempCByIndex(0));
    delay(500);
    i++;
  }
  return readings / READINGS_COUNT;
}

But on the thingsboard dashboard the data received is integer only. I am not able to get any floating point values.

Even using sendTelemetryFloat gives error

src/main.cpp: In function 'void loop()':
src/main.cpp:218:8: error: 'using ThingsBoard = class ThingsBoardSized<>' {aka 'class ThingsBoardSized<>'} has no member named 'sendTelemetryFloat'; did you mean 'sendTelemetryData'?
     tb.sendTelemetryFloat("temperature", averageTemperature());
        ^~~~~~~~~~~~~~~~~~
        sendTelemetryData

I am not using any JSON method.
How can I send the floating point values?

If you look at the error, it is telling you there is no sendTelemetryFloat() member [function].

I am not familiar with that library, but it does send strings so you could format your float into a string and pass that.