int ledpin=11, potpin=A1, potvalue, bright;
void setup() {
// put your setup code here, to run once:
pinMode(ledpin, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
potvalue = analogRead(potpin);
bright = potvalue/10;
analogWrite(ledpin, bright);
}