A sensor network comprising a plurality of network elements including a plurality of node types, including at least one sensor node, coupled among at least one environment coupled among at least one environment and at least one user, wherein the plurality of network elements are remotely controllable by the at least one user, wherein at least one node type of the plurality of node types provides node information including node resource cost and message priority to the plurality of network elements in response to at least one parameter of a signal received from the at least one environment, wherein at least one function of the plurality of network elements is controlled in response to the node information, wherein at least one node type includes at least one preprocessor coupled to at least one processor and a plurality of application programming interfaces (APIs), wherein the preprocessor operates on real-time processes, wherein the plurality of APIs are coupled to control at least one device that includes at least one of sensors, actuators, communications devices, signal processors, information storage devices, node controllers, and power supply devices, wherein the plurality of APIs support remote reprogramming and control the devices.