 
 #include <Wire.h>
 #include <ros.h>
-#include <std_msgs/Float32.h>
+#include <std_msgs/String.h>
 
 #define SENSOR_COUNT 1
 #define TYPE_ANALOG 0
+#define ANALOG_PIN 0
 
 #define MAX_SAMPLE_RATE 10
 #define MAX_SAMPLE_COUNT 10
 #define MAX_DELTA 0.5
 
 typedef struct temperature_sensor {
+  unsigned int id;
   float prev_temp;
   float curr_temp;
   unsigned int type;

} TemperatureSensor;

const TemperatureSensor default_sensor {
  0.0f, 0.0f, 0, 0, 0, 0, 0
};

// Temperature Sensor Array
TemperatureSensor sensors[SENSOR_COUNT];

// ROS variables
static ros::NodeHandle  nh;
static std_msgs::Float32 temp_msg;
static ros::Publisher pub_temp("temperature", &temp_msg);

static void increment_sample_rate(TemperatureSensor* sensor) {

static void handle_temp(TemperatureSensor* sensor) {
  if(abs(sensor->prev_temp - sensor->curr_temp) > MAX_DELTA) {
    sensor->prev_temp = sensor->curr_temp;
    String message = json_prefix + sensor->id + json_middle + sensor->curr_temp + json_suffix;
    temp_msg.data = message.c_str();
    pub_temp.publish(&temp_msg);
  }
}
