5,710
edits
Changes
→Serial Basics
Serial.println()
val=analogRead(input_pin);
Serial.print(val);
</code> (assuming you've done the necessary setup).
* Assuming you have a sensor which produces an analog output, hook it up to one of the Analog Inputs on your arduino. If you do not have a sensor, use the light sensor from last week. If you are not sure how your sensor works, come over and talk to me and we can try to figure it out.
* Run a short program to read data from that sensor and send it to the Serial port.