/* Get a pressure sample from a specified sensor. 
This returns the scaled value of a pressure sample taken from a user-specified pressure sensor. */
static int32_t barometric_pressure(sensor_t *sensor)
/* Get a pressure sample from a specified sensor. 
This returns the scaled value of a pressure sample taken from a user-specified pressure sensor. */
static int32_t barometric_pressure(sensor_t *sensor)
{
	sensor_data_t data;
	data.scaled = true;
	sensor_get_pressure(sensor, &data);
	return *(data.value);
}