Hi, need some help to pass this could nights..

I have a Temp/humidity sensor PL-0279 wich activate a soket with a fan, i'm trying (I know it can be than but..) to take the humidity out if it pass 60% during the day how ever @ the night time I would like the temp to limt the fan so it wount drop! I did lots of testing with timers and program's I got near but didnt quit get it to work good - appriciate the help.