Scientists have developed messages that only appear under specific biochemical triggers, using living bacteria.