This is a demo project showing how to access the Sensor API in PyScript, which supplements the accompanying tutorial on Real Python.
To use this project, open the following URL in a web browser on a mobile device such as a smartphone: https://realpython.github.io/pyscript-gravity-sensor/