Raspberry Pi 2 with a Grove Board having a Sound Sensor attached. I’m using as a basis the supplied sample script to test how the sensor works. It’s amended to print a message when the threshold of 200 is exceeded, but after making a noise loud enough to trigger that, it then continues to report high values even though the environment has returned to its quiet state. From the appearance of the code, it gets the momentary value being returned by the module, so I can’t see why it continues reporting a loud noise when there is none.
First, is the sensor functioning correctly, and if so, what can I do to have it report the sound value at the moment of its being measured? Or is it malfunctioning?
Second, what are the values being returned? Are they arbitrary values or decibels?