Design, characterization and management of a wireless sensor network for smart gas monitoring