changed the app to handle sensor measurements