This paper proposes a framework for the development of sensor node software for various operating systems in a sensor network environment. The proposed development framework consists of attributes, code templates and development support tool. Sensor node software is developed, based on the framework through four steps - sensor network modeling, PIM design, PSM design and code generation. Accordingly, this paper presents the methods for attributes design, code templates design, PIM-to-PSM mapping, and source code generation. Through the proposed technique, reusability of sensor network software will be increased since models, attributes and code templates can be reused for various operating systems through the framework. Productivity of software development will be increased, because software design is easily performed using attributes and software codes for all nodes in the sensor network can be generated at once from a model. Also, expandability of sensor network software will be increased, since new functions of existing operating systems or new operating systems can be added through the framework and sensor network software can be rebuilt by applying the added functions or operating systems.