Gateway software for an xbee based home automation system.