A method and wireless sensor device for determining body postures and activities. In one aspect, a method includes receiving sensor data. The method also includes detecting and classifying a body transition of a body based on the sensor data. The method also includes detecting if there is activity of the body based on the sensor data. If there is activity, the method also includes classifying the activity. If there is no activity, the method also includes classifying a rest position of the body based on the sensor data and based on a previous body transition.