# Examples using the Yosemitech Modbus Library<!--! {#page_the_examples} -->

These example programs demonstrate how to use the Yosemitech Modbus library.

___

<!--! @if GITHUB -->

- [Examples using the Yosemitech Modbus Library](#examples-using-the-yosemitech-modbus-library)
  - [Getting Sensor Values](#getting-sensor-values)
  - [Displaying Sensor Values](#displaying-sensor-values)

<!--! @endif -->

<!--! @tableofcontents -->

<!--! @m_footernavigation -->

## Getting Sensor Values<!--! {#examples_get_values} -->

This polls the sensor for some of its setup information, and then polls the sensor every several seconds for values, which it displays on a serial port monitor.

- [Instructions for the get values example](https://envirodiy.github.io/YosemitechModbus/example_get_values.html)
- [The get values example on GitHub](https://github.com/EnviroDIY/YosemitechModbus/tree/master/examples/GetValues)

## Displaying Sensor Values<!--! {#examples_display_values} -->

Near identical to GetValues except the values are intended to display on an SSD1306 128x64 LCD board.

- [Instructions for the display values example](https://envirodiy.github.io/YosemitechModbus/example_display_values.html)
- [The display values example on GitHub](https://github.com/EnviroDIY/YosemitechModbus/tree/master/examples/DisplayValues)

<!--! @m_innerpage{example_get_values} -->
<!--! @m_innerpage{example_display_values} -->
