Wireless Doggy Doorbell Mat

You need to spend time studying the code so you understand why it is "latching". The see if you can make it just turn off if no one is on the mat.