How to use the geomagnetic sensor in S3