The low-cost sensor made of a copper-based metal-organic framework performs as well as DNA based sensor, the gold standard for water quality sensors.