void setup() {
// put your setup code here, to run once:
Serial1.begin(115200);
Serial1.println("Hello, Raspberry Pi Pico W!");
pinMode(6, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int a = digitalRead(6);
Serial1.println(a);
if (a==1){
Serial1.println("MOTION DETECTOR");
}
delay(1000); // this speeds up the simulation
}