The IOT Gateway Acts as a bridge for wireless sensors to send their data to the internet and allows outputs to be controlled by another web connected device. The Gateway will listen for data from each sensor node in the system and send the data to the appropriate Xively channel for use by another device. The Gateway will also listen for commands from the internet and pass the commands to the output devices.
sorry, thought I'd put the link up already. The whole project can be found here: http://circuitcellar.com/wiznet2014/distinctiveexcellence/ there a zip of all the code, dht11 should be included. Let me know if it isn't and I'll post it when I get home.