Write an IoT program on room automation of 4 lights and 2 fans. Also there will be PIR sensor. When no person is sensed by the PIR sensor for 15 minutes it will automatically switch off the lights and fans. And when the pir sensor sense any person it will automatically switch on the lights and fans.
generate functionFri, 17 Feb 2023