Implementation of energy saving mechanisms for sensor networks with SunSPOT devices