An Infrared Motion Detector System for Lossless Real-Time Monitoring of Animal Preference Tests