im using dht11 and yl-69 soil moisture sensor.
Soil Moisture - https://www.aliexpress.com/item/Soil-mo ... 33290.html
DHT11 - https://www.adafruit.com/product/386
and 1 channel relay for wtaerpump
my main goals is, connect them together. and as i know my soil moisture sensor and dht11 both have DO so i only use digital output only . but for relay i haven't read any docs yet. so, my question how can i connect all of them? let we just say dht11 and soil moisture ?
i have read many soure that Raspi3 have 3 interfaces. 1-wire , SPI and I2C. and I2C have longest range sensor support maybe i will use this one instead of 1-wire and SPI. can you guys give me some visualization about connecting them ? may be do i need something like I2C expansion board depend on my requirement ?
fyi i already done connecting dht11 and soil moisture to raspberry pi 3 but its only separated. in this case , dht11 use pin 17 and Soil Moisture use pin 21. any suggestion and link for the source will be appreciated. thank you guys
edited : i was read basic flask web server. my plan is visualize data using webserver or maybe thingspeak API. but webserver is good enough for me. depend on the first reply of my post, i can connect all the sensors with only 1 file .(py) and display it as a webserver like i used to learn make webserver file with .py extension on this page : http://mattrichardson.com/Raspberry-Pi-Flask/ , am i correct ?