A system that incorporates spraying logic onto a sensor mat to detect and apply various liquids onto the feet of an animal. Each sensor in the sensor mat actuates at least one predetermined spray nozzle application of the medicinal fluid. The system is designed so that each hoof triggers at least two sensors, with each sensor activating at least one spray nozzle. All of the electronic components are located away from the mat and a controller control spraying and timing. Stop bars prevent the mat from compressing beyond a predetermined distance to prevent sensor failure. The sensors have a triple moisture prevention configuration.