> We made a program similar to the SonicSensorTest called SoundSensorTest, but changed it to use the sound sensor and > get the readings using the readValue() method of the SoundSensor class.
> We made a program similar to the SonicSensorTest called SoundSensorTest, but changed it to use the sound sensor and > get the readings using the readValue() method of the SoundSensor class.
>
>
```
>```
public class SoundSensorTest
>public class SoundSensorTest
{
>{
>
public static void main(String [] args)
> public static void main(String [] args)
throws Exception
> throws Exception
{
> {
> SoundSensor SS = new SoundSensor(SensorPort.S1);