const int LED_PIN=13;
const int POT_PIN= A0;
void setup() {
// put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
int val= analogRead(POT_PIN);
Serial.println(val);
analogWrite(LED_PIN, val/ 4);
}