Waspmote sketch for sensor devices on MDDA Wireless Sensor Network