Motion Sensor
A motion sensor detects motion within a certain range.
Information
Connection scheme
Scheme made with Fritzing.
Functions
Digital Read
Digital Read State
Reads a digital value.
void function_0_motionSensor(){
int value = digitalRead(pin_0_motionSensor);
function_0_motionSensor();
}
int value = digitalRead(pin_0_motionSensor);
void function_0_motionSensor(){
int value = digitalRead(pin_0_motionSensor);
state = 1;
}
Last modified April 12, 2022: updated code snippets (e7162de)