How to change integer to float?

See this thread about sprintf() with float values.

https://forum.arduino.cc/t/sprintf-with-float-values/937562

It's not supported on the Uno and other 8 bit avr boards. Use dtostrf().