We present a local monitoring system of temperature and caudal in a pig farm. The method consists of designing an instrumentation and measurement system, this uses a wireless sensor network (WSN) based on the ZigBee standard. The WSN sends the gathered data to a server that stores the information in a database with the purpose of consulting (local queries) at any time the data that have been measured by the electronic devices. The preliminary results show that the data we can be used to infer behavior of the variables under study, besides the prototype is scalable, efficient, that makes it easily adaptable to any pig farm.