Hi guys,
i have a project for my university, i put a dht11 sensor for humidity and temperature measurments and a relay the purpose of this project is dht11 sensor sends the results of the measurments to mqtt broker server and after broker server sends the results to phone.
with the relay i want to switch on/off one electrical outlet
i put the relay process at the void callback function
and the dht11 at the void loop function bacause i want the sensor sending data to phone for 30 minutes
and i control the relay anytime i want.
here is my code
home(relay&dht11).zip (1.55 KB)