Advertisement
Guest User

Untitled

a guest
May 29th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. int pin = A0;
  2.  
  3. void setup() {
  4.  
  5. }
  6.  
  7. void loop() {
  8. int newVal = analogRead(A0);
  9.  
  10. if(newVal > 300) {
  11. Spark.publish("brew_active", String(random(50000)), 60, PRIVATE);
  12. }
  13.  
  14. delay(10000);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement