Created
December 20, 2015 13:46
-
-
Save michaelsarduino/e2f095e2dd7ccc36f643 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
int wert = 0; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
wert = analogRead(A0); | |
Serial.print(wert); | |
if(wert < 60) | |
{ | |
Serial.println(" Alles Ok!"); | |
} | |
if((wert > 60) && (wert < 100)) | |
{ | |
Serial.println(" Besser ueberpruefen!"); | |
} | |
if(wert > 60) | |
{ | |
Serial.println("Kettenraucher eingebrochen, oder dein Haus ist in Flammen!"); | |
} | |
delay(20); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment