Alright.
From what i researched (not an expert, so bear with me please), light (the space between teeth on the disk) on the photosensor will give output 1, so the spaces are north poles. You need a cheaper phone with GPS and android, go to https://supermagnete.de and search for the Pole Detector...