Created
December 18, 2015 15:37
-
-
Save michaelsarduino/8fc1aa47e4a75d3deb44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
pinMode(7, INPUT); | |
} | |
void loop() { | |
if(digitalRead(7) == HIGH) | |
{ | |
Serial.println("Frei!"); | |
} | |
else { | |
Serial.println("Objekt erkannt!"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment