<commit_before>#include <I2CSoilMoistureSensor.h>

I2CSoilMoistureSensor sensor;

void setup() {
  Serial.begin(9600);
  
  sensor.begin(); // reset sensor
  delay(1000); // give some time to boot up
  string address = sensor.getAddress();
  string version = sensor.getVersion();

  // publish sensors info
  Particle.publish("setup", "I2C Soil Moisture Sensor Address: " + address, 300, PRIVATE);
  Particle.publish("setup", "Sensor Firmware version: " + version, 300, PRIVATE);
}

void loop() {
  float moisvalue = sensor.getCapacitance()
  float tempvalue = sensor.getTemperature()/(float)10
  
  String s_moisvalue = String(moisvalue);
  String s_tempvalue = String(tempvalue);
  
  Particle.publish("dataStreamTest", "Moisture value: " + s_moisvalue + " - Temperature value: " + s_tempvalue, 300, PRIVATE);
}<commit_msg>Update ReadSensorData.ino<commit_after>// This #include statement was automatically added by the Particle IDE.
#include "I2CSoilMoistureSensor/I2CSoilMoistureSensor.h"

I2CSoilMoistureSensor sensor;

void setup() {
  Serial.begin(9600);
  
  sensor.begin(); // reset sensor
  delay(1000); // give some time to boot up
  String address = String(sensor.getAddress());
  String version = String(sensor.getVersion());

  // publish sensors info
  Particle.publish("setup", "I2C Soil Moisture Sensor Address: " + address, 300, PRIVATE);
  Particle.publish("setup", "Sensor Firmware version: " + version, 300, PRIVATE);
}

void loop() {
  float moisvalue = sensor.getCapacitance();
  float tempvalue = sensor.getTemperature()/(float)10;
  
  String s_moisvalue = String(moisvalue);
  String s_tempvalue = String(tempvalue);
  
  Particle.publish("dataStreamTest", "Moisture value: " + s_moisvalue + " - Temperature value: " + s_tempvalue, 300, PRIVATE);
}
{'fraction_non_alphanumeric': 0.1273957158962796, 'fraction_numerical': 0.02536640360766629, 'mean_word_length': 4.762987012987013, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2331713', 'n_tokens_mistral': 621, 'n_tokens_neox': 582, 'n_words': 142}