   }
 }
 
-static void create_sensor(unsigned int id, unsigned int pin_addr, unsigned int type, TemperatureSensor* sensor) {
+static void create_sensor(uint32_t id, uint32_t pin_addr, uint32_t type, TemperatureSensor* sensor) {
   *sensor = default_sensor;
   sensor->id = id;
   sensor->pin_addr = pin_addr;

}

static void handle_analog(TemperatureSensor* sensor) {
  unsigned int raw_voltage = analogRead(sensor->pin_addr);
  float volts = raw_voltage / 205.0f;
  float celsius = 100.0 * volts - 50;
  sensor->curr_temp = celsius;

// ROS variables
static ros::NodeHandle  nh;
static std_msgs::String temp_msg;
static std_msgs::UInt8 count_msg;
static ros::Publisher pub_temp("temperature", &temp_msg);
static ros::Publisher pub_count("temp_sensor_count", &count_msg);

static void temperature_callback(const std_msgs::UInt8& id) {
  if(id.data > SENSOR_COUNT) {
    return;
  }
