Specifying WSN Applications through Agents Based on Events and States | IEEE Conference Publication | IEEE Xplore