# BSP: Sensors Example
## Overview
<table>
<tr><td valign="top">
This example demonstrates the usage of sensors available in BSP packages.
All sensors are sampled based on the configured sampling period.
Measurement results are printed to the terminal and shown on the display, if available.
</td><td width="200" valign="top">
<img src="/examples/display_sensors/doc/pic.webp">
</td></tr>
</table>
## Build and Flash
To build and flash the example for a specific `{board}` and `{port}`, use the following command:
```
idf.py -D SDKCONFIG_DEFAULTS=sdkconfig.bsp.{board} -p {port} flash monitor
```
Make sure the correct board name is set in the `main/idf_component.yml` file under the `dependencies` section.
## Launch Example
You can also try this example using ESP Launchpad:
<a href="https://espressif.github.io/esp-launchpad/?flashConfigURL=https://espressif.github.io/esp-bsp/config.toml&app=display_sensors">
<img alt="Try it with ESP Launchpad" src="https://espressif.github.io/esp-launchpad/assets/try_with_launchpad.png" width="250" height="70">
</a>
To create a project from this example, run:
idf.py create-project-from-example "espressif/m5stack_tab5=1.2.0~1:display_sensors"