/*Sensor Reading*/ int analogSensor = 0; int sensorValue = 0; void setup() { //configure serial connection: Serial.begin(9600); } void loop() { //read the analog sensor sensorValue = analogRead(analogSensor); //print results in raw binary value followed by ASCII value for that binary //Serial.print(sensorValue, DEC); //Serial.print(" : "); //Serial.println(sensorValue, BYTE); //OR print results in raw binary value only Serial.println(sensorValue, DEC); //OR print results in ASCII only (good for network protocols and human readable) //Serial.println(sensorValue, BYTE); }