A method and system that incorporates spaying logic onto the sensor(s) adapted to detect and apply various liquids onto the feet of an animal. The sensor(s) actuate(s) specific valve(s) for application of the medicinal fluid. The operational components for initiating the spray treatment are located away from the treatment zone to protect the components from failures due to environmental conditions in that location. The application of the medicinal fluids can be enhanced by administering them to specific animals by tagging the animals that require more frequent or stronger treatments.