I'm in desperate need of help for my eksamensprojekt

You can only have one 'void setup()'. Combine the two, and you may want to include the code inbetween the two too.