Sensors


As the name implies, do sensors somehow sense their environment. In a hydroponic system, this may include parameters like nutrient content and the resulting alkalinity, air and water temperature, humidity, air and water turbidity, a full light spectrum or specific wavelength like UV radiation, chlorophyll content and cellular pressure in the leaves, and some more, depending on your expectations and system design.

Keep in mind, that there are analog and digital sensors, which differ according to the way they deliver the data. While within the Arduino environment you are able to directly process both of them [3], you must convert the analog sensors' data to digital ones when using a Raspberry Pi [45]. On the contrary, the Raspberry Pi is able to run a wholesome operation system like Windows with all the advantages of having a working environment, while the Arduino has to be programmed from scratch.

Let us look into the most common sensors and see how they principally work, giving you a picture on how necessary and complicated to include for your system in question they are.


pH Sensor

Sensor Type and Pins [15]

  • Analog sensor
  • Power, ground and analog data pin

Hardware and Software availability [15]:

  • pH sensors are available at common electronic stores
  • Libraries are available, including voltage/pH conversion and calibration

Maintenance [15]:

  • Cleaning and calibration are required once in a while, recommended once a month when using permanently

Price [15]:

  • Starting at ~30 €, up to several 100 € per industrial standard fulfilling unit

 

There are many different pH sensors on the market, but the operating principle remains the same. A semipermeable membrane lets ions (the dissolved nutrients in the hydroponic solution) pass into a chamber, which holds an electrode. This electrode is connected to a similar one being placed in a second reference chamber with a specific acidic level, creating a so-called galvanic cell. Due to the different potential of the solutions, a small voltage is measurable, which then has to be translated into the level of acidity or alkalinity, respectively.

Hence, when implementing such a sensor in your system, you will have to convert the sensor's output voltage into the level of acidity (including temperature coefficient when aiming for improved accuracy). Additionally, as ions will alter the electrodes surface, recalibration will be necessary once in a while.



EC Sensor

Sensor Type and Pins [15]

  • Analog sensors
  • Power, ground and analog data pin

Hardware and Software availability [15]:

  • Selective-ion sensors are available at mostly common electronic stores
  • Libraries are available, including voltage/EC conversion and calibration

Maintenance [15]:

  • Cleaning and calibration are required once in a while, recommended once a month when using permanently

Price [15]:

  • Starting at ~35 €, up to several 100 € per industrial standard fulfilling unit

 

Different than pH sensors, there are not that many electric conductivity (EC) sensors on the market and the prices are a little higher. Nevertheless, the working principle is easily explained: two symmetrical electrodes are hold into the solution in question and some power put onto them. The electrodes react like a conductor, creating a electromagnetic field between them, which is affected by the dissolved nutrients of the hydroponic solution in between: the more ions, the higher the conductivity of the nutrient solution and hence the higher the voltage transmitted between the electrodes.

Hence, when implementing such a sensor in your system, you will have to convert the sensor's output voltage into the specific conductivity value (including temperature coefficient when aiming for improved accuracy). Additionally, as ions will alter the electrodes surface, recalibration will be necessary once in a while.



Selective Ion Sensors

Sensor Type and Pins [15]

  • Analog sensor
  • Power, ground and analog data pin

Hardware and Software availability [15]:

  • Selective ion sensors are sometimes available at common electronic stores
  • Libraries may be available, including voltage/ion conversion and calibration, but since they are often used in high precision setups, whole hardware and software solutions may be the only option. 

Maintenance [15]:

  • Cleaning and calibration are required once in a while, recommended once a month when using permanently, but hardware/software-package should include automation of at least recalibration

Price [15]:

  • Starting at ~65 € for one sensor alone, up to several 1000 € per industrial standard fulfilling package

 

Different than pH sensors, there are only a very few selective ion sensors as standalone product on the market and the prices are very steep towards more sophisticated sensors. Also keep in mind, that these types of sensors only make sense, if you are testing for many macro or even micro nutrients and hence are able to add each nutrient separately. Nevertheless, there are two working principles for selective ion sensors: optical and electro-chemical. The latter is more likely to get as standalone product and hence the only one interesting for the purpose of a small hydroponic system at home. It works very similar to the one of a pH sensor: Either, a semipermeable membrane lets only the specifically dissolved ion pass into a chamber, which holds an electrode or this electrode only binds the specific ion in question, causing to sense exclusively the specific desired ion.

The rest is similar to the pH sensor: this electrode is  connected to a similar one being placed in a reference chamber with a specific solution of the ion in question.  Due to the different potential of the solutions, a small voltage is measurable, which then has to be translated into the concentration of the ion you are testing for.

Hence, when implementing such a sensor into your system, you will have to convert the sensor's output voltage into the specific ion concentration (including temperature coefficient when aiming for improved accuracy). Additionally, as the ions will alter the electrodes surface, recalibration will be necessary once in a while.



Temperature and Humidity Sensors

Sensor Type and Pins [15]

  • Analog or digital sensor
  • Power, ground and data pin

Hardware and Software availability [15]:

  • Temperature and/or humidity sensors are available at common electronic stores
  • Libraries are available, including Celsius/Fahrenheit conversion and enabling joined or separated data-gathering for temperature and humidity

Maintenance [15]:

  • No maintenance required

Price [15]:

  • Starting at ~4 € per sensor

There are many analog and digital sensors on the market suitable for hydroponic systems measuring air and water temperatures, air humidity and/or atmospheric pressure, respectively. And there are also many different working principles. Nonetheless, at least the most of them use metals changing their electrical resistance or volume with changes in temperature, humidity or pressure, which in return alters the power put through. The data is then either send directly back to the controller or converted into a digital signal and then send back.

 



Light Sensor

Sensor Type and Pins [15]

  • Analog or digital (I2C) sensor
  • Power, ground and either one analog or two digital data pins

Hardware and Software availability [15]:

  • Light sensors are mostly available at common electronic stores
  • Libraries are available, including voltage/light or voltage/radiation scale conversion

Maintenance [15]:

  • No maintenance required

Price [15]:

  • Starting at ~2 € per sensor 

There are many light sensors for different wavelengths on the market. While they may use different technologies to capture and process the analog signal, the latter is always obtained through the photoelectric effect: Light particles called photons hit the metals' surface and cause through their provided energy to expel some electrons, now called photoelectrons. These provide small powers, which may be measured and converted into light intensity or some radiation scale.



Pressure Sensor

Sensor Type and Pins [15]

  • analog or digital sensor
  • power, ground and data pin

Hardware and Software availability [15]:

  • Pressure sensors are mostly available at common electronic stores
  • Libraries are available, including conversion into different units

Maintenance [15]:

  • No maintenance required

Price [15]:

  • Starting at ~5 € per sensor alone 

There are different pressure sensors for many divers applications on the market. In a hydroponic system, you could measure the air pressure to experiment the plants' behavior to storms, etc., or you could measure the cellular pressure of leaf cells to control the plants' health. Both intentions probably use different working principles. For the atmospheric pressure, the piezoelectricity is often used. It appears at a conductor, which has one plate fixed and the other one movable according to the outside pressure. With being pushed towards the other plate, the piezoelectricity is conducted.



Link to References