Hi everybody,
I just buy this sensor :
i just wire this on most simple way and listening on serial port the A0 pin and i have only maxvalue (1023) or 35 when i adjust the sensibility .
I buy two of this, and both make same thing, i have a value of 35 whatever the sound there on proximity of the sensor.
An idea oh what is wrong ?
int sensorPin = A0; // select the input pin for the potentiometer
int sensorValue = 0; // variable to store the value coming from the sensor
void setup() {
// declare the ledPin as an OUTPUT:
Serial.begin(9600);
}
void loop() {
// read the value from the sensor:
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
}