Skip to content

Instantly share code, notes, and snippets.

@Mango-kid
Created July 6, 2016 16:21
Show Gist options
  • Save Mango-kid/f00294fbe22da52b01324ac83a8ef919 to your computer and use it in GitHub Desktop.
Save Mango-kid/f00294fbe22da52b01324ac83a8ef919 to your computer and use it in GitHub Desktop.
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