@rakgupta - Get a fine thread hose adapter like this to connect the Smart Hose Timer to the hose bib →
Then a hose thread vacuum breaker like this to place on the outlet side of the Smart Hose Timer →
https://www.homedepot.com/p/Everbilt-3-4-in-Brass-Vacuum-Breaker-Valve-108-904EB/205821773
Yes, I believe a vacuum breaker is required by code on newer outside faucets. If the set screw was broken off on the current fine thread vacuum breaker, you may need to drill out the screw to prevent the fine threads from being damaged.