Engineers are increasingly finding ways to reduce the size of sensors that measure chemical levels in fluids.