Intruder alert system

Hi sir, i have made a project “intruder alert system” you can check by the link below: https://www.hackster.io/stdeepak15/intrusion-alert-system-79e461
I have made this project by using bolt iot, IR sensor and buzzer in which whenever the intruder or anyone comes infront of the IR (within the range) then the Buzzer will start beeping and an alert email is sent to the owner or user…
Now i want to add one more feature that is i want to control the IR sensor with my google assistant, that means whenever the user want to turn on the IR sensor so that the intrusion alert system start working and whenever the user want to turn off the IR sensor so that the intrusion alert system stop working…

I tried using a GPIO pin 2 for this and IFTTT and webhooks for this feature and connect the GPIO pin 2 to the IR 5v/Vcc pin and the command like https://cloud.boltiot.com/remote/xxxxApiKeyx/digitalWrite?pin=2&state=HIGH&deviceName=BOLTXXXXXX
to turn on the IR whenever i say to google assistant(like turn on the system) and command like https://cloud.boltiot.com/remote/xxxxApiKeyx/digitalWrite?pin=2&state=LOW&deviceName=BOLTXXXXXX
to turn off the IR whenever i say to google assistant(like turn off the system)
but it didn’t work because the GPIO pin 2(or any gpio pin) is not able to provide enough voltage or 5v to run the IR sensor…

Now Please anybody guide me how can i achieve this feature in my project so that i can show this project as a minor project in my college
I just want to control the IR sensor using voice(google assistant) in above project by me.

Hi @st.deepak15:

This is a very nice project that you have done.

To implement the new function, you will need a relay module, to supply power to the IR sensor. You will be able to control the relay module using the digital GPIO of the Bolt WiFi module

Here is a link on how to interface a relay with the Bolt WiFi module.