int ledPin = 3;
int buttonPin = 2;
int potPin = A0; 

void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT_PULLUP);
  pinMode(potPin, INPUT);

  Serial.begin(9600);
}

void loop() {
  int buttonState = digitalRead(buttonPin);
  int potValue = analogRead(potPin);
  int filteredPotValue = potValue /4;
  analogWrite(ledPin, potValue);

  Serial.print("Pot: ");
  Serial.print(potValue);
  Serial.print(' ');

  Serial.print("Pot/4: ");
  Serial.println(filteredPotValue);
}