Created
May 2, 2016 08:17
-
-
Save vinirodr/457ea07165ab667a01424be1b1cb3211 to your computer and use it in GitHub Desktop.
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
//this outputs pot value to screen in ohms | |
int gasSensor = 0; // select input pin for gasSensor | |
int val = 0; // variable to store the value coming from the sensor | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
val = analogRead(gasSensor); // read the value from the pot | |
Serial.println( val ); | |
delay(100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment