// MOTION INIT bool motionState = false; void motionDetected() { motionState = true; }