Wireless Sensor Networks for Healthcare Applications