I am designing a automated cattle trap and would like advise on motion sensors and communication and automated of gate . The idea is that the system designed has feed in it and when the cow or cows go in it can close one gate and open a nother gate and the system knows from sensors when this has...