//#define LED 13
int P1 = A1;
#define LED A0
//int LED = 13;
//#define P1 A1;
int val ;
float VAL1 ;
float ValLed ;
void setup() {
Serial.begin(9600);
}
void loop() {
val = analogRead(P1);
VAL1 = map(val, 0, 1023, 0, 255);
analogWrite(LED, VAL1);
Serial.println(VAL1);
//ValLed = map(LED, 0, 255, 0, 100)
//Serial.println(ValLed);
}