int taster;
int helligkeit;
void setup() {
  // put your setup code here, to run once:
pinMode(8, INPUT);
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
Serial.begin(9600);
}

void loop() {
  // put your main code here, to run repeatedly:

taster = digitalRead(8);
while(taster == 1)
{
  helligkeit=helligkeit+1;
  taster=digitalRead(8);
  Serial.println(helligkeit);
  analogWrite(3,helligkeit);
  delay(45);
  if(helligkeit>255)
  {
    helligkeit=0;
    return;
  }
}







}