Complex sentence: Trap primers regularly inject water into traps so that "water seals" are maintained, as necessary to keep sewer gases out of buildings.
Split into simpler sentences: Trap primers regularly inject water into traps so that "water seals" are maintained. This seal is necessary to keep sewer gases out of buildings.