Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sending vibration sensor data #1

Open
sunnyaoc opened this issue Jul 29, 2022 · 0 comments
Open

sending vibration sensor data #1

sunnyaoc opened this issue Jul 29, 2022 · 0 comments

Comments

@sunnyaoc
Copy link

Please I need some help!
I want to send vibration sensor (801S) pulse data from one lgt-rf nano to another but couldn't.
here is the vibration sensor code
#define valPin D4 //sensor
void setup(){

pinMode(valPin, INPUT);
Serial.begin(9600);

Serial.println("impact detection on pipeline");
}
void loop(){
long vibMeasure = vib()/1000;
delay(100);
Serial.println(vibMeasure);

long vib(){
long vibMeasure = pulseIn (valPin, HIGH); //wait for the pin to get HIGH and returns measurement
return vibMeasure;
delay(100);
}

I want to send vibMeasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant