Skip to content

Instantly share code, notes, and snippets.

@mschlenker
Created February 28, 2020 12:53
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 mschlenker/06709ba6edccb04cf3700eaf269614b4 to your computer and use it in GitHub Desktop.
Save mschlenker/06709ba6edccb04cf3700eaf269614b4 to your computer and use it in GitHub Desktop.
int sensor = 0;
void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
sensor = analogRead(A0);
Serial.print("Read: ");
Serial.println(sensor);
delay(2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment