int red = 13;
int green = 12;
int potPin = A0; // Assuming the potentiometer is connected to analog pin A0

void setup() {
  pinMode(red, OUTPUT);
  pinMode(green, OUTPUT);
  pinMode(potPin, INPUT);
}

void loop() {
  int potValue = analogRead(potPin); // Read the analog value from the potentiometer
  int brightness = map(potValue, 0, 1023, 0, 255); // Map the potentiometer value to the range of 0-255

  analogWrite(red, brightness); // Set the brightness of the LED based on the potentiometer value
  analogWrite(green, brightness / 0.5);
}