int PIR = 3;
void setup() {
// put your setup code here, to run once:
pinMode(3, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(3) == HIGH) {
Serial.print(" COGLIONE RILEVATO ");
delay(1000);
}
else {
Serial.print(" niente per ora ");
delay(1000);
}
}