Guys, i'm trying to print the values read by my sound sensor (Diy) on the Excel by PLX-DAQ, or even in the Arduino.
The problem is that it's not reading!!! The values vary between 65, 66, 67, or other numbers, but it doesn't change the values when I make noise.
Here is my code:
int row;
void setup() {
Serial.begin(9600);
Serial.println("CLEARDATA");
Serial.println("LABEL,Hora,Valor");
}
void loop() {
int sensorValue = analogRead(A0);
row++;
Serial.print("DATA,TIME,");
Serial.println(sensorValue);
if (row>0){
row=0;
Serial.println("ROW,SET,2");
}
delay(200);
}
Ty u guys!!
Sorry for the bad English, it is not my native language!