quick help -- button pressing and timing

youre coding now is aimed for the falling edge witch means it wil react when the button is released (if this is not correct toggle al the TRUE/FALSE except "boolean status = FALSE;"

also in the println function youre trying to print a variable called 5(wich does not exist) in stead of the number 5 so use "5" in stead of just 5

give this baby a spin:

boolean status = FALSE;

void setup(){
Serial.begin(9600);
}

void loop(){
        if (digitalRead(5) == FALSE && status == TRUE){
                  Serial.println("5");
                  status = FALSE;
        }
        if (digitalRead(5) == TRUE){
                  status = TRUE;
        }

}