a function-definition is not allowed here before '{' problem

sterretje:
I
Using a cellphone at this moment but it looks like loop() is missing a closing }.

what do you mean?