International Business Machines Corp. said Tuesday that it will invest $3 billion over four years on a new business helping customers gather and analyze the flood of data from sensor-equipped devices and smartphones.

The computing giant IBM, -1.72% announced the effort, along with an alliance with the Weather Company, which owns the Weather Channel and other information providers. The two companies plan jointly to exploit data about weather conditions to help businesses make better decisions.