You MUST have a setup() function, that is what the error message is telling you. Copy the statements from both setup() functions into setup() in the new combined code. Look out for conflicts such as the same pin being used for different purposes in each original program.

If you are still stuck after combining the 2 setup() functions post your whole code here again. There is no point looking at your code as it is now because there is no setup() function.

Please do not send me PMs asking for help. Post in the forum then everyone will benefit from seeing the questions and answers.