1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-22 16:54:20 +01:00
2010-02-24 03:31:14 +00:00

13 lines
152 B
Plaintext

void setup() {
Serial.begin(9600);
pinMode(2, INPUT);
}
void loop() {
int sensorValue = digitalRead(2);
Serial.println(sensorValue, DEC);
}