The present invention relates to a system comprising Titania (TiCh) integrated porous support (PIPS) on a thin film for specific detection of amoxicillin in wastewater followed by its photodegradation under UV irradiation. The support material includes such as but not limited to zeolite or activated carbon which enhances the adsorption of the amoxicillin on the surface of titania and facilitate chemical reaction leading to yellow dye formation on the surface for instant detection of amoxicillin present in the wastewater. The invention provides a specific, selective and simple detection method over other methods henceforth will be useful for scaling up for a large scale treatment of waste water contaminated with antibiotics.