Add accelerometer example.