Go Down

Topic: project(dht11&relay)  (Read 37 times) previous topic - next topic


May 20, 2019, 11:14 am Last Edit: May 20, 2019, 11:24 am by Mike7nt
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


here is my code
The code does something that is a secret.
You expect the code to do something that is also a secret.

How what the code actually does differs from what you want it to do is also top secret.

How do you really expect us to help?
The art of getting good answers lies in asking good questions.

Go Up