Creating an artificial material that can sense, adapt to its environment