This would be trivial .. I could write the software for a rPi for this in about 20 minutes .. You could use a service that sends SMS messages to a remote host if it's internet connected or even use a cell card and get SMS messages directly, however a simple IoT system would work better.
The...