Created
February 28, 2020 12:53
-
-
Save mschlenker/06709ba6edccb04cf3700eaf269614b4 to your computer and use it in GitHub Desktop.
This file contains 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 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