From now to 2030, the world urban mobility will increase by 50%. This increase will be mainly performed in developing countries which already suffer from congestion traffic especially in large cities where road traffic reaches a high density. This situation leads to a serious impact on the economic and social growth. The urban traffic management has become an essential factor. Within the framework of a Moroccan city like Casablanca (1.5 million vehicles a day run there ), an efficient road traffic management turns to be necessary so as to solve the serious problem of traffic jams and to decrease the problem of traffic jams and improve the fluidity of the road traffic. We are settling intelligent systems transport (IST) such as the case of smart cities. The traffic simulation is a better way to evaluate a road traffic network. The latter is simulated by using two simulators, Green Light district (GLD) and Simulator Urban Mobility (SUMO). We have been working with an Open Street Map in the SUMO traffic, in order to get closer to reality. This study describes a low cost and energy saving urban monitoring mobility system based on wireless sensor networks (WSNs ). Simulation results show that our suggested algorithm is efficacious and practical in different cases; it could reduce the number of packages sent from each sensor placed on the track. This proposed solution provides the sensor networks with a longer lifetime of sensor networks:by reducing its energy consumption.