Bioinspired colorimetric sensor based on the M13 bacteriophage is developed. Identification of the antibiotics including commercial product. Successful classification of the vapor phase molecules with chemical structure. Promising platforms for portable and simple environmental monitors.