Added magnetic and accelerometer to sensor app.