Skip to content

Instantly share code, notes, and snippets.

@gguuss
Created April 12, 2018 18:13
Show Gist options
  • Select an option

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

Select an option

Save gguuss/43fc303d891de650fe274c4617b4e491 to your computer and use it in GitHub Desktop.
Reading MQ7 sensor
int MQ7_APIN = A3, int MQ7_DPIN = 8;
float readMQ7() {
float value = analogRead(MQ7_APIN);
//int limit = digitalRead(MQ7_DPIN)
return value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment