Does it need to be a smart device? You could just get a driveway alarm and place it where they would have to walk past it.
https://www.amazon.com/Driveway-Alarms-Wireless-Outside-Weatherproof/dp/B0BFDMKD98