A resource optimized physical movement monitoring scheme for environmental and on-body sensor networks