This module provides a simple interface to [BME280/BMP280 temperature/air presssure/humidity sensors](http://www.bosch-sensortec.com/bst/products/all_products/bme280) (Bosch Sensortec).
For given air pressure and sea level air pressure returns the altitude in meters as an integer multiplied with 100, i.e. altimeter function.
#### Syntax
`bme280.altitude(P, QNH)`
#### Parameters
-`P` measured pressure
-`QNH` current sea level pressure
#### Returns
altitude in meters of measurement point
## bme280.baro()
Reads the sensor and returns the air temperature in hectopascals as an integer multiplied with 1000 or `nil` when readout is not successful.
Current temperature is needed to calculate the air pressure so temperature reading is performed prior reading pressure data. Second returned variable is therefore current temperature.
#### Syntax
`bme280.baro()`
#### Parameters
none
#### Returns
-`P` air pressure in hectopascals multiplied by 1000
-`T` temperature in celsius as an integer multiplied with 100
## bme280.dewpoint()
For given temperature and relative humidity returns the dew point in celsius as an integer multiplied with 100.
Reads the sensor and returns the air relative humidity in percents as an integer multiplied with 100 or `nil` when readout is not successful.
Current temperature is needed to calculate the relative humidity so temperature reading is performed prior reading pressure data. Second returned variable is therefore current temperature.
#### Syntax
`bme280.humi()`
#### Parameters
none
#### Returns
-`H` last relative humidity reading in % times 1000
-`T` temperature in celsius as an integer multiplied with 100
## bme280.init()
Initializes module. Initialization is mandatory before read values.
Using forced mode is recommended for applications which require low sampling rate or hostbased synchronization. The sensor enters into sleep mode after a forced readout. Please refer to BME280 Final Datasheet for more details.
-`delay` sets sensor to forced mode and calls the `callback` (if provided) after given number of milliseconds. For 0 the default delay is set to 113ms (sufficient time to perform reading for oversampling settings 16x). For different oversampling setting please refer to [BME280 Final Datasheet - Appendix B: Measurement time and current calculation](http://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf#page=51).
-`callback` if provided it will be invoked after given `delay`. The sensor reading should be finalized by then so.