Well, I am not going to try to teach you electrical engineering in one post - the Forum has a 5000 character limit.
Basically, all circuits have to have a reference voltage, usually called ground or common (in the USA). Exceptions exist, of course, but most cases tie all the commons together. In your circuit everything connected to the bottom line should be connected to the DAQ digital ground. Your diagram used the symbol for a battery to represent the power source for the sensor and comparator circuit. Since that symbol is often used to generically to represent any DC power source, I was uncertain of your actual situation.
Batteries or floating power supplies can be used in situations where circuits do not have a convenient or safe means of tying the commons together. For example large motor drives may have currents flowing in the neutral conductor that are large enough that several volts may drop across the length of the conductor bewteen the motor and ground. This voltage could produce errors or damage the DAQ device or computer. An isolated power source like a battery could be used to power a sensor and allow the reference voltegs to be connected in such a manner as to avoid the risk of errors or damage.
Lynn