/* Reads relative humidity and temperature from a Si7013 sensor.  */
int32_t Si7013_MeasureV(I2C_TypeDef *i2c, uint8_t addr, int32_t *vData)
/* Reads relative humidity and temperature from a Si7013 sensor.  */
int32_t Si7013_MeasureV(I2C_TypeDef *i2c, uint8_t addr, int32_t *vData)
{
  int ret;
  Si7013_WriteUserReg2(i2c, addr, 0x0e);
  ret = Si7013_Measure(i2c, addr, (uint32_t *) vData, SI7013_READ_VIN);
  Si7013_WriteUserReg2(i2c, addr, 0x09);
  if (ret == 2)
  {
  }
  else
  {
    return -1;
  }
  return 0;
}