A demo on how to use a Tilt Sensor from the analog/digital input and display the position of the sensor that it reads to the LCD. It might be simple as you think but the LCD requires a device driver in order for the developer to use it.
Techsource Technical Team (2020). LCD Tilt (https://www.mathworks.com/matlabcentral/fileexchange/52294-lcd-tilt), MATLAB Central File Exchange. Retrieved .