Here is a handheld pH sensor, which is used to regulate a small home aquaponics system.
The schematic and code for the H2O pH Probe can be found at the GitHub repository here.
Here is the part list used in this build.
Source