Basic Sensors in iOS: Programming the Accelerometer, Gyroscope, and More