I am working on developing a device that will implement an Arduino to sort mice in a lab. The sorter will connect a home cage ~5 mice to a testing chamber. The testing chamber is controlled by a software program called Med PC: https://www.med-associates.com/product/med-pc-v-software-suite/ . When a mouse enters the sorter I would like for the sorter to initiate the Med PC program to start. When the mouse exits the chamber and goes into the sorter I would like for the sorter to tell Med PC to stop running. Wondering if anyone could help me out on how to achieve this?