Hi everyone, i'm building a earthquake detector and the data will be sent to companion app to be graphed, time against vibration. However, there seem to be an error. How could I correct the code?
Arduino code
int Vibration_signal = 13; //Define the Digital Input on the Arduino for the sensor signal
void setup() {
pinMode(Vibration_signal, INPUT);
Serial.begin(9600);
}
void loop() {
long data = pulseIn(Vibration_signal,HIGH);
delay(1000);
Serial.println(data);
delay(500);