use the %f
modifier:
sprintf (str, "adc_read = %f\n", adc_read);
For instance:
#include <stdio.h>
int main (void)
{
float x = 2.5;
char y[200];
sprintf(y, "x = %f\n", x);
printf(y);
return 0;
}
Yields this:
x = 2.500000