The vast majority of the cost comes at the start, in the design of hardware (like sensors) and, more important, in creating the software that produces the capability to carry out various tasks. Once this is achieved, the marginal cost of the hardware is relatively low (and declines as scale rises), and the marginal cost of replicating the software is essentially zero.