Support for this Lua module has been discontinued.
Equivalent functionality is available from the bmp085 module in the NodeMCU
firmware code base. Refer to `docs/en/modules/bmp085.md` for API
documentation.
The original Lua code can be found in the [git repository](https://github.com/nodemcu/nodemcu-firmware/tree/2fbd5ed509964a16057b22e00aa8469d6a522d73/lua_modules/bmp085).
oss: Over sampling setting, which is 0,1,2,3. Default value is 0.<br/>
####Returns
p: Integer, calibrated data of pressure from bmp085.
####Example
```lua
bmp085=require("bmp085")
sda=1
scl=2
bmp085.init(sda,scl)
p=bmp085.getUP(oss)
print(p)
-- Don't forget to release it after use
bmp085=nil
package.loaded["bmp085"]=nil
```
####See also
**-**[]()
<aid="bmp085_getUP_raw"></a>
##getUP_raw()
####Description
Get raw data of pressure from bmp085.<br/>
####Syntax
getUP_raw(oss)
####Parameters
oss: Over sampling setting, which is 0,1,2,3. Default value is 0.<br/>
####Returns
up_raw: Integer, raw data of pressure from bmp085.
####Example
```lua
bmp085=require("bmp085")
sda=1
scl=2
bmp085.init(sda,scl)
up=bmp085.getUP_raw(oss)
print(up)
-- Don't forget to release it after use
bmp085=nil
package.loaded["bmp085"]=nil
```
####See also
**-**[]()
<aid="bmp085_getUT"></a>
##getUT()
####Description
Get temperature from bmp085.<br/>
####Syntax
getUT(num_10x)
####Parameters
num_10x: num_10x: bool value, if true, return number of 0.1 centi-degree. Default value is false, which return a string , eg: 16.7.<br/>
####Returns
t: Integer or String, if num_10x is true, return number of 0.1 centi-degree, otherwise return a string.The temperature from bmp085.<br/>
####Example
```lua
bmp085=require("bmp085")
sda=1
scl=2
bmp085.init(sda,scl)
-- Get string of temperature.
p=bmp085.getUT(false)
print(p)
-- Get number of temperature.
p=bmp085.getUT(true)
print(p)
-- Don't forget to release it after use
bmp085=nil
package.loaded["bmp085"]=nil
```
####See also
**-**[]()
<aid="bmp085_getAL"></a>
##getAL()
####Description
Get estimated data of altitude from bmp085.<br/>
####Syntax
getAL(oss)
####Parameters
oss: over sampling setting, which is 0,1,2,3. Default value is 0.<br/>
####Returns
e: Integer, estimated data of altitude. Altitudi can be calculated by pressure refer to sea level pressure, which is 101325. Pressure changes 100pa corresponds to 8.43m at sea level<br/>
Read humidity and temperature from DHTxx(11,21,22...).
**Parameters:**
* pin - ESP8266 pin connect to data pin
### getHumidity
getHumidity()
Returns the humidity of the last reading.
**Returns:**
* last humidity reading in per thousand
### getTemperature
getTemperature()
Returns the temperature of the last reading.
**Returns:**
* last temperature reading in(dht22) 0.1ºC (dht11)1ºC
*
The original Lua code can be found in the [git repository](https://github.com/nodemcu/nodemcu-firmware/tree/2fbd5ed509964a16057b22e00aa8469d6a522d73/lua_modules/dht_lib).
Support for this Lua module has been discontinued.
Equivalent functionality is available from the dht module in the NodeMCU
firmware code base. Refer to `docs/en/modules/tsl2561.md` for API
documentation.
The original Lua code can be found in the [git repository](https://github.com/nodemcu/nodemcu-firmware/tree/2fbd5ed509964a16057b22e00aa8469d6a522d73/lua_modules/tsl2561).