Created
April 12, 2018 18:13
-
-
Save gguuss/43fc303d891de650fe274c4617b4e491 to your computer and use it in GitHub Desktop.
Reading MQ7 sensor
This file contains hidden or 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 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