Programming living sensors for environment, health and biomanufacturing