well it is an either or thing not both.

A dip switch would be fine, marked ground on one side sensor on the other, OR
can you have an extra lead for ground instead of wiring through the sensor wires?

so if the extra wire sees ground fan comes on.

Not sure what you are getting from the sensor though. If it is resistance or some voltage, so not sure what you would do with the empty leads.