Here are the parts of this lesson. They're best followed in this order.
Introduction to Monitoring Device Sensors in LiveCode
Monitoring Mobile Device Sensors – A more detailed discussion, with more LiveCode examples.
Exercise: Building a sample app – A step-by-step guide for creating a sample application that reads mobile device sensors.
Download the completed sample app from http://dight310.byu.edu/lesson_materials/20-Sensors/sensorDemo-enhanced.livecode