A new study has found that activity trackers and other wearable sensors will be able to detect when a person is getting sick.