const int led =9;
 int value ;
void setup() 
{
  pinMode(led, OUTPUT);
  Serial.begin(9600);
}

void loop()
 {
 for (value=0; value<255;value++)
 {
 analogWrite(led,value);
  Serial.println(value);
}

}