BME280 Pressure Sensor
R2026bMeasure barometric air pressure, relative humidity, and temperature from BME280 sensor
Since R2022b
Libraries:
Raspberry Pi Blockset /
Sensors /
Environmental Sensors
Description
The BME280 block outputs the values of barometric air pressure and relative humidity as measured by the BME280 sensor connected to Raspberry Pi® board. The block also outputs the temperature as read by the BME280 sensor.
Note
To generate C/C++ code for this block, you must have an Embedded Coder® license.
Ports
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"raspberrypienvironmentalsensorslib/BME280 Pressure Sensor"
Example: add_block("raspberrypienvironmentalsensorslib/BME280 Pressure Sensor","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2022b
