The AM1011 is a very affordable temperature and humidity sensor.
But how do you use it with OpenSprinkler or OSPi?
Connect the 4 wires as follows:
RED=red=VDD (+5V)
BLACK=black=GND
YELLOW=yellow=humidity at S0 (any analog sensor input)
WHITE=white=temperature at S1 (another, arbitrary analog sensor input)
Now set in the sensor configuration:
a) for S0/humidity:
Type=ASB – user defined sensor
Name=AM1010 hum
ID=0 (or the number of the analog sensor input)
Factor=100
Divider=3
Offset=0
Unit=Air Humidity %
b) for S1/Temperature
Type=ASB – user defined sensor
Name=AM1010 temp
ID=1 (or the number of the Analog Sensor Input)
Factor=120
Divider=5
Offset=3750
Unit=Degree Celsius °C