Automatic Egg Incubator HELP

I'm a newbie in arduino applications, and I need to do an automatic egg incubator using of its functions is based from the measured temperature/humidity using dht11 or dht22 sensor the incandescent light must automatically adjust its intensity....What can I do to adjust the light intensity of the lamp?

Thanks~ :)

How is the lamp powered/controlled? Could analogWrite help?

this is a lib for the sensor - - this is the core code

t = dht.getTemperature();
brightness = map(t, 10, 35, 0, 255);
brightness = constrain(brightness(0, 255);
analogWrite(LEDPIN, brightness);