I am only receiving the correct temperature value. The other 3 values are reading wrong. My format string isent matching the variable list. Can anyone tell me what I need to do.
float data_bar = 0.0;
float data = 0.0;
float anVal = 0.0;
float moistureVal = 0.0;
while(1)
{
Well, the number and type of format specifiers need to match exactly the provided parameter (like data_bar,tempError, etc) otherwise you'll risk a crash because sprintf cannot tell what and how many parameter it gets