MuhammadAnas25
Newbie level 5
Hello Helpers,
I need some help I have an Rcwl-0516 microwave sensor and an esp01 project basically I made a code but it's not working properly I wanted to make any logic like that if the person enters the room the device detects the person and turns on the Air conditioner using IR command and when a person leaves the room then it ac should be turn off but from my code it on the ac and turn off the ac but when the person in the room it automatically turn off the ac can you check my code or give any recommendation?
I need some help I have an Rcwl-0516 microwave sensor and an esp01 project basically I made a code but it's not working properly I wanted to make any logic like that if the person enters the room the device detects the person and turns on the Air conditioner using IR command and when a person leaves the room then it ac should be turn off but from my code it on the ac and turn off the ac but when the person in the room it automatically turn off the ac can you check my code or give any recommendation?