Created
December 23, 2015 17:21
-
-
Save michaelsarduino/2615925325c5a516df83 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); | |
} | |
void loop() { | |
if(analogRead(7) < 890) | |
{ | |
Serial.println("Magnet gefunden!"); | |
} | |
else | |
{ | |
Serial.println("Kein Magnet in der Naehe..."); | |
} | |
delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment