#define sensorInput 7
#define ledOutput 8
void setup() {
Serial.begin(9600);
}
int readSensor() {
int motion = digitalRead(sensorInput);
}
void loop() {
int motion = readSensor();
delay(1000);
Serial.print(motion);
}
#define sensorInput 7
#define ledOutput 8
void setup() {
Serial.begin(9600);
}
int readSensor() {
int motion = digitalRead(sensorInput);
}
void loop() {
int motion = readSensor();
delay(1000);
Serial.print(motion);
}