moved print4sensorvalues, fixed minor bug in publish_sensor_vals