You can check out these two apps which have that feature built in to monitor multiple door/window sensors and suspend the HVAC and then resume operation when they’re all closed. There are more on the website but these two will probably be the best fit for your needs as they have a closed loop setup i.e. it checks the the HVAC is operating to ensure that commands aren’t lost in cloud/mesh and your renters aren’t left with a AC not working.
You can also check out other rental automation apps like Rental Lock Automater which are popular with hosts.