I tried to upload this sketch it contains vibration detector with other different detectors, but I have this problem that I don't understand in the void loop section of the vibration sketch

You forgot to properly format the code in the IDE,
and did not use code tags as requested.