// This example lets the i/o board read an analog input // value, and send it via the serial port. The value that // it sends is coded in decimal: if the value is 289, then // three characters are transmitted, "2", "8", and "9". // The values received by the PC can be displayed using the // "Serial Monitor" of the programming environment. void setup() { Serial.begin(9600); // start serial comm at 9600 bps } void loop() { int v = analogRead(0); // read analog input pin 0 Serial.println(v/4, DEC); // send via serial port delay(100); // wait 100ms for next reading }