If using float firmware then `hum` and `temp` are floating point numbers. On an integer firmware, the final values have to be concatenated from `hum` and `hum_dec` / `temp` and `temp_dec`.
#### Example
```lua
localsda,scl=6,5
i2c.setup(0,sda,scl,i2c.SLOW)-- call i2c.setup() only once
Settings for the sensors configuration register to adjust measurement resolution, on-chip heater and read the supply voltage status.
...
...
@@ -90,63 +150,3 @@ local sda, scl = 6, 5
i2c.setup(0,sda,scl,i2c.SLOW)-- call i2c.setup() only once
si7021.setup()
```
## si7021.read()
#### Syntax
`si7021.read()`
#### Parameters
none
#### Returns
-`hum` humidity (see note below)
-`temp` temperature (see note below)
-`hum_dec` humidity decimal
-`temp_dec` temperature decimal
!!! note
If using float firmware then `hum` and `temp` are floating point numbers. On an integer firmware, the final values have to be concatenated from `hum` and `hum_dec` / `temp` and `temp_dec`.
#### Example
```lua
localsda,scl=6,5
i2c.setup(0,sda,scl,i2c.SLOW)-- call i2c.setup() only once