this could b the structure of the code:
void setup() {
// setup sensor
// setup LED
}
void loop() {
// wait
// read sensor
// if there was movement --> turn the LED off
// if there was no movement --> turn the LED on
}
or what was ur question? ![]()
this could b the structure of the code:
void setup() {
// setup sensor
// setup LED
}
void loop() {
// wait
// read sensor
// if there was movement --> turn the LED off
// if there was no movement --> turn the LED on
}
or what was ur question? ![]()