Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement