The programming of the TelosB sensor node was performed through TinyOS operating system. The programming was per formed as follows: The node with identification number "9" would send it sensor values only to the node numbered "1" , which would in turn send its own data and the data received from node "9" to the node identified as "0", which was programmed as the base station. The function of base-station node is to ensure that the sensor data obtained from the area is transferred to the computer via the serial port. Figure 6 shows the code block for the reading of sensor values.