I discovered this as a library for p5.js to send phone data into a sketch, but it also has a feature to send phone sensor data (touch or accelerometer) as OSC messages. So obviously I had to try it with Sonic Pi. Super easy to get up and running. You just have to download the app to your phone and enter your ip and Sonic Pi OSC port # (4559).
Here’s the website: https://tramontana.xyz/
This is the tutorial to use the OSC feature in the app. The tutorial shows it being used to communicate with Wekinator but just use the Sonic PI OSC port # instead and you will see the data automatically getting sent into Sonic Pi.
This thread was also helpful to map phone sensor data into usable parameter ranges:
Here are an example of using accelerometer data to change notes:
And another one using accelerometer to change synth cutoff: