In this paper, we present an approach allowing dynamic reconfiguration in wireless sensor networks (WSNs). This proposition is based on a twofold work. First we propose Valentine, a new component-based operating system (OS) for WSNs, allowing dynamic administration of components at runtime. This OS will be generated from the Think framework. Second, we discuss and present a specific mechanism for dynamic reconfiguration in the constrained context of WSNs.