In this study, a compact and low-cost ammonium detector integrated spectrophotometric and fluorescence detection was designed based on the reaction of ammonium and o-phthalaldehyde in the presence of sodium sulfite solution to form substances with both photometric properties and fluorescence. This two-in-one detector detects ammonium in spectrophotometric mode at high concentrations and in fluorescence mode at low concentrations. The detector with a total size of 5×5×5 cm2 and integrates the detector skeleton box, light source, attenuator, filter, photoelectric sensor, data acquisition card, constant current source circuit, and LabVIEW upper computer acquisition program. Also, the detector was applied to the determination of water samples with a wide range of ammonium concentrations, showing good performance. The detector has the advantages of low cost, miniaturization, easy operation, and wide detection concentration range. This two-in-one detector has good potential for ammonium detection in the field, especially where ammonium concentration varies widely.