const int analogInPin = A0; // Analog input pin that the potentiometer is attached to int sensorValue = 0; // value read from the pot void setup() { // initialize serial communications at 9600 bps: Serial.begin(9600); } void loop() { // read the analog in value: sensorValue = analogRead(analogInPin); //outputValue = map(sensorValue, 0, 1023, 0, 255); //use the line above to optimize the values after you note them down Serial.print("sensor = " ); Serial.println(sensorValue); delay(500); }