Utilizing its integrated camera as a spectrometer, we demonstrate the use of a smartphone as the detection instrument for a label-free photonic crystal biosensor. A custom-designed cradle holds the smartphone in fixed alignment with optical components, allowing for accurate and repeatable measurements of shifts in the resonant wavelength of the sensor. Externally provided broadband light incident upon an entrance pinhole is subsequently collimated and linearly polarized before passing through the biosensor, which resonantly reflects only a narrow band of wavelengths. A diffraction grating spreads the remaining wavelengths over the camera's pixels to display a high resolution transmission spectrum. The photonic crystal biosensor is fabricated on a plastic substrate and attached to a standard glass microscope slide that can easily be removed and replaced within the optical path. A custom software app was developed to convert the camera images into the photonic crystal transmission spectrum in the visible wavelength range, including curve-fitting analysis that computes the photonic crystal resonant wavelength with 0.009 nm accuracy. We demonstrate the functionality of the system through detection of an immobilized protein monolayer, and selective detection of concentration-dependent antibody binding to a functionalized photonic crystal. We envision the capability for an inexpensive, handheld biosensor instrument with web connectivity to enable point-of-care sensing in environments that have not been practical previously.