*Help* Temperature Controlled 3D Printer Enclosure *Help*

Hello all,

It's been many years since I have done anything with Arduino and most of it was pretty simple.
This project is not what I would call simple.
My goal is to have an couple of fans on my enclosure that turn off and on depending on temperature aswell as a servo actuated vent that is controlled via a button press for ABS that also shuts off the fans as well. I only have one relay in the code, I was just going to wire both fans to it.
Also I'm doing this code at work in a text editor and emailing it to myself. I know I'm missing some stuff and probably doing quite a bit wrong and wanted to get some of you Gurus opinions. I saw a few posts pertaining to similar projects but none together that helped.
Please help!
Thanks in advance for taking the time to look over my project!

//3D Printer Enclosure Temp Controlled Fan and Servo Actuated //Vents
#include
#include "DHT.h"
#include <Servo.h>; 
// pushbutton pins 
const int buttonPin = 8; 
// const int buttonpin2 = 9;
// servo pin 
const int servoPin = 3; 
Servo servo;
int relayPin = 13;

#define DHTPIN 7
#define DHTTYPE DHT22 

DHT sensor(DHTPIN, DHTTYPE);

U8GLIB_SH1106_128X64 oled (13, 11, 10, 9, 8); 
void setup()
{
pinMode(relayPin, OUTPUT); 
sensor.begin(); 
oled.firstPage();
do 
{ 
oled.setFont(u8g_font_fur14); 	
//setting the font size 
//Printing the data on the OLED 
oled.drawStr(20, 15, "G.Tech");	 
oled.drawStr(40, 40, "Temp");
oled.drawStr(5, 60, "Control Alpha"); 
} 
while( oled.nextPage() ); 
delay(5000); 
} 
void loop() 
{ 
// local variable to hold the pushbutton states 
int buttonState; 
Int buttonState2;
//read the digital state of buttonPin with 
//digitalRead() function and store the value in buttonState var
//second button state is placeholder if needed
buttonState = digitalRead(buttonPin);
//buttonState2 = digitalRead(buttonPin2);
float h = sensor.readHumidity(); 	
	//Reading the humidityvalue 
float t = sensor.readTemperature(); 		
        //Reading the temperature value
float fah = sensor.readTemperature(true);
	//Reading the temperature in Fahrenheit
if (isnan(h) || isnan(t) || isnan(fah))
{		
//Checking if we are receiving the values or not 
oled.drawStr(20, 15, "TEMP");	 
oled.drawStr(40, 40, "READ");
oled.drawStr(5, 60, "FAILURE"); 
return;
}
Else if(t > desiredt)
{ 
digitalWrite(relayPin, HIGH); 
} 
Else if (buttonState == LOW)
{ 
// check button press
servo.write (180);
oled.drawStr(5, 60, "ABS MODE"); 
Delay (150);
digitalWrite(relayPin, LOW); 
}
}
float heat_index = sensor.computeHeatIndex(fah, h);
	//Calculating the heat index in Fahrenheit float heat_indexC = sensor.convertFtoC(heat_index); 
//Calculating the heat index in Celsius oled.firstPage(); 
do
{ 
oled.setFont(u8g_font_fub11); 
	//setting the font size
//Printing the data on the OLED oled.drawStr(0, 15, "Temp: "); oled.drawStr(0, 40, "Hum: "); 
oled.drawStr(0, 60, "Hi: "); oled.setPrintPos(72, 15); 	
	//setting the dimensions to print the 
//temperature 
oled.print(t, 0);
oled.println("C"); 
oled.setPrintPos(72, 40);
//setting the dimensions to print the 
//humidity 
oled.print(h, 0); 
oled.println("%"); 
oled.setPrintPos(72, 60);
//setting the dimensions to print heat index
oled.print(heat_indexC, 0); oled.println("%"); 
}
while( oled.nextPage() ); 
delay(2000); 
{

What kind of fans? If you are using PC case fans (80/120mm), get the type with 4 pin connectors. Then you won't need a relay, and you will be able to use pwm to control the fan speed.

Why are you using dht22? Is humidity important for a 3D printer? If not, a ds18b20 digital temp sensor would be smaller and more accurate. Plus, you can string several of them onto the same pair of wires and read each temp independently.

You appear to be using pins 8 &13 twice!

"Else" should be "else" and "Delay" should be "delay".

In using 3pin fans, mainly bc I already have them, same with the relay.
I'm using the DHT22 sensor because I got 2 of them for cheap and need the humidity sensing for my drybox storage container bc almost all filaments are extremely moisture sensitive. I've got 100g of silica dessicant in the box.
Thanks for pointing out the double pin usage.
I've had a busy weekend so I haven't had a chance to build the circuit and test the code, I did print the enclosure for the controller.
I was looking over the code again and it just seems all sorts of wrong, but I don't know why..lol...
I may have to just hire a coder to write it, sign, like I'll ever be able to afford that....
I was hoping to get some more advice but I'm appreciative of what I've gotten so far!