418
edits
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
// global variables | // global variables | ||
int sensor = A1; | |||
int sensor = A1; | |||
void setup() { | void setup() { | ||
// put your setup code here, to run once: | // put your setup code here, to run once: | ||
Serial.begin (9600); // start serial | Serial.begin (9600); // start serial | ||
Line 45: | Line 48: | ||
void loop() { | void loop() { | ||
// put your main code here, to run repeatedly: | // put your main code here, to run repeatedly: | ||
int sensorValue = analogRead (sensor); | int sensorValue = analogRead (sensor); | ||
Serial.println (sensorValue); | Serial.println (sensorValue); | ||
} | } |
edits