Grove Dust sensor stop working after few reading

Hi,



I am using grovepi+ to connect the grove dust sensor to raspberry pi 3.

The grove pi works fine and its Firmware version is 1 4 0.

The grove Pi code for running grove dust sensor is in attachment.

The problem is grove dust sensor stops reading after few reading and exit from the program and go o the main command console. it seems that it is disabled. any help would be appreciated.



Thanks.

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.