Grove Dust sensor stop working after few reading

Hi there~



The code is written by dexterind. please post the question to https://forum.dexterindustries.com/c/grovepi. They will help to solve the issue. thanks.