/* function to get temperature 
Note that si7006_get_humidity must be called before calling si7006_get_old_temperature. */
static int si7006_get_old_temperature(const struct device *dev)
/* function to get temperature 
Note that si7006_get_humidity must be called before calling si7006_get_old_temperature. */
static int si7006_get_old_temperature(const struct device *dev)
{
	struct si7006_data *si_data = dev->data;
	const struct si7006_config *config = dev->config;
	uint8_t temp[2];
	int retval;
	retval = i2c_burst_read_dt(&config->i2c, SI7006_READ_OLD_TEMP, temp,
				   sizeof(temp));
	if (retval == 0) {
		si_data->temperature = (temp[0] << 8) | temp[1];
	} else {
		LOG_ERR("read register err");
	}
	return retval;
}