Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created December 20, 2015 13:46
Show Gist options
  • Save michaelsarduino/e2f095e2dd7ccc36f643 to your computer and use it in GitHub Desktop.
Save michaelsarduino/e2f095e2dd7ccc36f643 to your computer and use it in GitHub Desktop.
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