Low-cost sensor