Created
July 6, 2016 16:21
-
-
Save Mango-kid/f00294fbe22da52b01324ac83a8ef919 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
const int analogInPin = A0; | |
int sensorValue = 0; | |
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
sensorValue = analogRead(analogInPin); | |
Serial.print("sensor = "); | |
Serial.print(sensorValue); | |
delay(2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment