Got a picture of the locks?
Often a thoughtfully placed reed switch / door sensor can serve many purposes.
And often something like a Aqara one might be better than an ESP as they are small, discreet and wireless.
You can hack then with other sensors too. Take a look at the door lock sensor for example.