A smartphone's compass can be used to analyze biomarkers like glucose and pH in body fluids and other liquids through a simple, low-cost sensor strip.