1 # AllWize - Vineryard monitoring
3 This example use cases uses a simple analog higrometer to measure humidity in
4 the soil as a measure of vineyard hidro-stress and a HTU21D I2C sensor to
5 retrieve environment temperature and humidity.
7 The higrometer is an analog sensor, but some also sport a comparator fed by a
8 potentiometer. Those will then also have a digital output. We are using here the
9 analog reading so we need that output. In case yours has a potentiometer please verify
10 it still has an analog out.
12 To calibrate the sensor immerse it in water and check the analog value
13 (see the getHumidity method in the code). Then set HIGROMETER_MIN to that value.
15 If you are using the AllWize K1 you must set the sensor power jumper to the nominal value of
16 the board you are using (5V for Uno/Leonardo, 3V3 almost anywhere else) and
17 connect your sensor to the analog grove connector (the middle one).
18 Check that the yellow cable goes to the analog output of the sensor (sometimes labeled A0).
20 The HTU21D is very straight forward to use. If using the K1 check that the yellow cable is
21 connected to SCL and the white one to SDA.
23 Always remember to connect the antenna before powering the board!
27 Copyright (C) 2018-2020 by AllWize ([http://allwize.io](http://allwize.io))
29 AllWize library is free software: you can redistribute it and/or modify
30 it under the terms of the GNU Lesser General Public License as published by
31 the Free Software Foundation, either version 3 of the License, or
32 (at your option) any later version.
34 AllWize library is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU Lesser General Public License for more details.
39 You should have received a copy of the GNU Lesser General Public License
40 along with AllWize library. If not, see <http://www.gnu.org/licenses/>.