A method and system that incorporates spraying logic onto the sensor mat to detect and apply various liquids onto the feet of an animal. Each sensor in the sensor mat actuates a specific valve for application of the medicinal fluid without the use of relays and associated wiring. The medicinal fluid is a topical anti-inflammatory/vaso dilator to prevent swelling, hemorrhaging, and further tissue elimination, commonly known as laminitis, abscess, ulcers and white line disease. The application of the medicinal fluid can be administered to only specific animals by tagging the animals that require treatment.