Wearable or implantable devices combining microfluidic control of sample and reagent flow and micro-cavity surface plasmon resonance sensors functionalized with surface treatments or coatings capable of specifically binding to target analytes, ligands, or molecules in a bodily fluid are provided. The devices can be used to determine the presence and concentration of target analytes in the bodily fluids and thereby help diagnose, monitor or detect changes in disease conditions.