1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-02-14 08:54:26 +01:00
2009-06-24 21:24:53 +00:00

14 lines
153 B
Plaintext

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