I think my board might be bricked

Why is all your code 3 times the same?
Why is a variable containing humidity created 3 times?
And why is there so many empty lines?