Modify Blynk project to Ubidots

How do I modify this project in Blynk to do so in Ubidots?
This is the project: https://www.hackster.io/BrayanBermudez/security-system-and-temperature-monitor-for-your-home-3f0fd6
(I just need help in the code. Thank you).

It seems like this project is using a Wemo, so the following code example should help: