Example of how to use Android sensors