Example

// print it out in many formats:
serial.print(analogValue);// print as an ASCII-encoded decimal
serial.print("\t");// print a tab character
serial.print(analogValue,DEC);// print as an ASCII-encoded decimal
serial.print("\t");// print a tab character
serial.print(analogValue,HEX);// print as an ASCII-encoded hexadecimal
serial.print("\t");// print a tab character
serial.print(analogValue,OCT);// print as an ASCII-encoded octal
serial.print("\t");// print a tab character
serial.print(analogValue,BIN);// print as an ASCII-encoded binary
serial.print("\t");// print a tab character
serial.print(analogValue/4,BYTE);// print as a raw byte value (divide the// value by 4 because analogRead() returns numbers// from 0 to 1023, but a byte can only hold values// up to 255)
serial.print("\t");// print a tab character
serial.println();// print a linefeed character