     char info[64];
     
     // Convert to double
-    pointTemperature = (double) atoi(pointTemperatureStr.c_str());
+    pointTemperature = atof(pointTemperatureStr.c_str());
     
     // Log to the serial
     sprintf(info, "Point is set to: %2.2f", pointTemperature);

    
    // SparkCloud: variables
    Spark.variable("temperature", &tempInfo, STRING);
    Spark.variable("pwm", &pwmInfo, STRING);
    
    // SparkCloud: functions

    }
    
    // Actual temperature in celsius
    actualTemperature = ds18b20.getTemperature();
    
    // Calculate PID output
    myPID.Compute();
