i got a thing saying that "expected initializer before 'void'"
the void is the void in void loop.
please help
You'll need to post the sketch and the complete error message I think.
The problem was noticed there, it could be in the code above.
In the absence of your code down to the suspected line I can't see any obvious places it could be.