A medication dispenser includes a casing, a notched wheel and a circuitry unit. The casing includes a mouthpiece. The notched wheel has a plurality of notches, and is rotatable to register the notches with the mouthpiece. The circuitry unit includes an annular magnetic member co-rotatably mounted to the notched wheel, and a Hall sensor. The magnetic member has a plurality of alternately arranged first and second magnetic poles. The Hall sensor is in a first detecting state when it detects one of the first magnetic poles, and is in a second detecting state when it detects one of the second magnetic poles.