Use of a programmable protocol timer and data logger in the monitoring of animal behavior