void setup() {
Serial.begin(9600);
pinMode(12, OUTPUT);
pinMode(8, INPUT);
}
void loop() {
digitalWrite(12,HIGH);
Serial.print("Recebido: ");
Serial.println(digitalRead(8));
delay(1000);
digitalWrite(12,LOW);
Serial.print("Recebido: ");
Serial.println(digitalRead(8));
delay(1000);
}