This paper presents a simulator of wireless sensor networks developed during a research on the application of bioinspired algorithms to the routing problem of this kind of networks. The proposed simulator can create a custom wireless sensor network, modify it, add new sensors, generate events, routing and store data in text files to reload it. The simulator can be used as an educational tool for teaching to people interested in this technology.