// Example 07: Send to the computer the values read from the analouge input 0 // Make sure you click on "Serial Monitor" after you upload const int SENSOR = 0; //selects the input pin for the sensor resistor int val = 0; //variable to store the value coming from the sensor void setup() { // put your setup code here, to run once: Serial.begin(9600); //open up the serial port to send data back to the computer at 9600 bits per second } void loop() { // put your main code here, to run repeatedly: val = analogRead(SENSOR); //read the value from the sensor Serial.println(val); //print the value to teh serial port delay(100); //wait 100ms between each send }