I want my store room light and fan to turn on or off automatically as people enter or leave the room. My current setup in the store room is a lighting control on off by the normal switch. For the light it would be quite straight-forward I guess. But the fan, not so. It used to be controlled by controller or switch buttons. So I have to bypass this and find the way to connect it to the IR sensor. Please refer to this issue from my question here: Bypass start button on bladeless fan to make fan start when power on
I have bought most of the items on the above question and answer except for the IR sensor. I am looking at this one:
https://www.lazada.sg/products/ac85-265v40mm-pir-infrared-ray-motion-sensor-switch-time-delay-adjustable-ceiling-mode-detector-switching-intl-i242397960-s371815747.html?spm=a2o42.searchlist.list.26.5d202118WTW2Rj&search=1
And here is how it is connected as I google on the internet:
Now my remaining challenges would be finding the right component and way to connect them together.
And here is my understanding of how to connect things together.
I still don't know how to connect the rest of the IC pins and would it be safe to connect 220V to these components ?
Could anyone help me to figure out these so I can start to order and make it works ? Thank you !