PRECISION LIVESTOCK FARMING: PROTOTYPING SENSOR-BASED APPLICATIONS