A Wireless Body Area Sensor Network for Posture Detection