Code for Chicken Incubator

Hi everyone,

I have a problem and I was wondering if anyone could help me out please!

I am a Mechanical Engineer and do not know anything about the electronics. Having said that, I have designed and manufactured a chicken incubator. To control the temperature, the fan (as a heat source), and the motor that are used in it, I purchased an Arduino nano chip, a rack of 4 relays, and a DHT22. I need the code to upload into Arduino Nano chip.

The program should read the temperature using DHT 22 and if the temperature is less than 37.5 degrees to turn a 40W light bulb and a 5 V DC computer fan and when the temperature reaches at or above 38.3 degrees the light bulb and the fan should turn off. I want to display and monitor the temperature and the humidity. In addition to the temperature and humidity readout, a 1 RPM (AC) motor needs to be turned on every 4 hours for 1 minute.

Can anyone help me out please (aliazimi0123@yahoo.com)?

I would very much appreciate any help I can get.

Best regards,

It seems easy. But how do you will "display and monitor the temperature and the humidity"? I don't see material to do that in the list of material that you have.

Are you sure you want to turn the fan off in a incubator (I wouldn't). Also the dht22 is voltage sensitive so any drop is voltage due to a relay closing is going to show as a change of temp (5v fan off the same supply as the arduino might also cause a problem). I suggest you start with a mega and a breadboard to prototype everything then once you have all the problems corrected like how to load the eggs when the turner is tilted sideways etc you can get the code crushed down to fit the nano.