In a pi zero w i have a DHT11 module and by making use of the adafruit's libray i read the temperature/humidity in a room. I use the following code to write in a csv file. So far so good.
I am looking to attach a relay and switch on/off the aircondition if the temperature is out of a predefined range. Let's say the temperature to be 15 and 25 degrees of Celcius.
The relay that i am looking is the followinghttps://www.amazon.com/Tolako-Arduino-I ... way&sr=8-8
I would appreciate any help available please.