Skip to content

Instantly share code, notes, and snippets.

@gguuss
Last active April 15, 2018 03:30
Show Gist options
  • Select an option

  • Save gguuss/bac864d60fe47baef3f63f5fda3f2020 to your computer and use it in GitHub Desktop.

Select an option

Save gguuss/bac864d60fe47baef3f63f5fda3f2020 to your computer and use it in GitHub Desktop.
dustyloop
void loop() {
char buf[12];
float mq = readMQ7();
sprintf(buf, "%f", mq);
Serial.println("" + String(buf));
sendTelemetry("" + String(buf));
delay(60000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment