Unscrew the top section from the bottom. You will notice in the bottom section with the cups the rotary shaft is the little black item. That's the magnet. It's held in with a steel retainer. With a screw driver try to remove this but be careful not to damage anything. If the steel gets bent in the process it can be bend back for reassembly. Once the retainer is removed the shaft should slide out. Then using a pipe cleaner clean the inside of the shaft hole. If it's stuck with something sticky Use a towel sprayed with WD-40 and clean the stuff of. Then reassemble the shaft magnet and steel retainer and then reassemble the bottom of the sensor to the top section that contains the batteries.