Design of a behaviour-based thermal experience sensor for automatic monitoring and climate control in pig houses