   
   sensor.begin(); // reset sensor
   delay(1000); // give some time to boot up
-  string address = sensor.getAddress();
-  string version = sensor.getVersion();
+  String address = String(sensor.getAddress());
+  String version = String(sensor.getVersion());
 
   // publish sensors info
   Particle.publish("setup", "I2C Soil Moisture Sensor Address: " + address, 300, PRIVATE);

#include <I2CSoilMoistureSensor.h>

I2CSoilMoistureSensor sensor;


}

void loop() {
  float moisvalue = sensor.getCapacitance();
  float tempvalue = sensor.getTemperature()/(float)10;
  
  String s_moisvalue = String(moisvalue);
  String s_tempvalue = String(tempvalue);
