Sensor networks offer novel opportunities for measurement data exchange on a wide spectrum of applications where particular physical phenomenon is monitored for control purposes. In order to serve such a purpose, it is essential that the sensed data be reported to the monitoring unit. This communication should be dynamic and automatic. The use of wireless communication coupled with embedded processor technology for such information exchange greatly increases the associated flexibility and mobility. This paper discusses the design and development of a middleware for the communication between embedded systems in a wireless sensor network. The paper describes the various functions related to measurements that can be used in such a middleware, to realize a driver for measurement data exchange between the embedded processors of the nodes in the network.