Monitoring system for animal health in real time, including control of use of medicines and vaccines in pig farming