const int POTENTIOMETER_SLIDE_PIN = A1;
const int LED_PIN = 3;
void setup()
{
pinMode(LED_PIN, OUTPUT);
Serial.begin(9600);
}
void loop()
{
int potentiometerslideValue = analogRead (POTENTIOMETER_SLIDE_PIN);
int brightness = potentiometerslideValue / 4;
analogWrite(LED_PIN, brightness);
Serial.print("PotentioMeter Value: ");
Serial.println(potentiometerslideValue);
}