Created
April 20, 2015 05:26
-
-
Save stenehall/8733ea7d481faaf38b7a to your computer and use it in GitHub Desktop.
This file contains 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 pin = A0; | |
void setup() { | |
} | |
void loop() { | |
int newVal = analogRead(A0); | |
if(newVal > 300) { | |
Spark.publish("brew_active", String(random(50000)), 60, PRIVATE); | |
} | |
delay(10000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment