Currently, Cystic Fibrosis (CF) patients lack the ability to track their lung health at home, relying instead on doctor checkups leading to delayed treatment and lung damage. By leveraging the ubiquity of the smartphone to lower costs and increase portability, a smartphone-based peripheral pH measurement device was designed to attach directly to the headphone port to harvest power and communicate with a smartphone application. This platform was tested using prepared pH buffers and sputum samples from CF patients. The system matches within ~0.03 pH of a benchtop pH meter while fully powering itself and communicating with a Samsung Galaxy S3 smartphone paired with either a glass or Iridium Oxide (IrOx) electrode. The IrOx electrodes were found to have 25% higher sensitivity than the glass probes at the expense of larger drift and matrix sensitivity that can be addressed with proper calibration. The smartphone-based platform has been demonstrated as a portable replacement for laboratory pH meters, and supports both highly robust glass probes and the sensitive and miniature IrOx electrodes with calibration. This tool can enable more frequent pH sputum tracking for CF patients to help detect the onset of pulmonary exacerbation to provide timely and appropriate treatment before serious damage occurs.