Sample code for reading sensor data to the app.