Vibration Sensor
A vibration sensor detects vibration next to it.
Information
Connection scheme
Scheme made with Fritzing.
Functions
Digital Read
Digital Read State
Reads a digital value.
void function_0_vibrationSensor(){
int value = digitalRead(pin_0_vibrationSensor);
function_0_vibrationSensor();
}
int value = digitalRead(pin_0_vibrationSensor);
void function_0_vibrationSensor(){
int value = digitalRead(pin_0_vibrationSensor);
state = 1;
}
Last modified April 12, 2022: updated code snippets (e7162de)