int val; void setup() { Serial.begin(9600); // Start serial communication at 9600 bps } void loop() { val = analogRead(A0);//get data from the analog pin Serial.write(val/5); // Write the data to the serial communication port //Serial.println(val); // show the val data in the serial monitor delay(100); // Wait 100 milliseconds }