This case uses the built-in magnetometer (electronic compass) of the micro:bit V2 as the sensor. It detects the direction of Earth's magnetic field and outputs azimuth angle data ranging from 0° to 360°. The program displays corresponding arrow icons based on different azimuth angle ranges.