You can already do that, but instead of #include, you dim you sensor using diferent modules.
On complilation o ly the suited module will be aggregated to the final code
If sensor1.bas, sensor2.bas and sensor3.bas have the same public variables, but different Inline-C code with different C-libs - they can be used optionally with the Main module code that is shared for all, Main can be edited only at one place, without need to have 3 separate projects.