Skip to content

Instantly share code, notes, and snippets.

@buildcircuit
Created August 31, 2015 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buildcircuit/0cd58e5c30a812573067 to your computer and use it in GitHub Desktop.
Save buildcircuit/0cd58e5c30a812573067 to your computer and use it in GitHub Desktop.
int sensor1 = A0; //connected to analog 0
void setup()
{
Serial.begin(9600);
}
void loop() {int sensor1pin = analogRead(sensor1);
Serial.print("sensor1:");
Serial.println(sensor1pin);
delay(2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment