Sensors and servos error

in function void loop();

error: function-defination is not allowed here before {

If you are looking for help with that error message you really need to post the code that caused it. My guess is that you have a semi-colon missing from a function call in loop

Just delete the semicolon at the end of the line "void loop();"

IMO this is sort of editing mistake is an area where the Arduino IDE could make things easier for new users. It's really easy for someone new to do stuff like that and then wonder what the problem is, since that part before the curly brace thingy looks just like the rest of the lines, right down to the semicolon at the end.

A nice addition would be some sort of code parser that looks for the basic mistakes that you'd expect new programmers to make in a sketch, and then to explain in simple language what is wrong without cryptic error messages (which aren't really cryptic if you understand how the compiler parser works, but I suppose most users don't).