How to Connect a pH Sensor to a Raspberry Pi
Whether you want to monitor a pool, aquarium or some other body of water, connecting a pH sensor to a Raspberry Pi can be achieved relatively easily. In this tutorial I’ll be using the Atlas Scientific pH sensor, it’s an industrial grade sensor that works well with the Raspberry Pi, it’s fully submersible up to the BNC connector in both fresh and saltwater. The sensor works using either serial communication or via the I2C protocol, for this example, I will be configuring the sensor to use the I2C interface on the Raspberry Pi.
To configure the Pi I am assuming that you are running the latest version of Raspian, have the ability to connect to your Pi either through SSH with putty and FTP with Filezilla, or directly with a keyboard and monitor. If you haven’t set-up your Pi yet then check out the getting started section.
In this tutorial I will be using the following materials: