1. A computer-implemented method of detecting contaminants in a pipe that is transporting a known fluid, the computer-implemented method comprising: a processor establishing a baseline vibration pattern from readings generated by a smart sensor that is affixed to the pipe, wherein the baseline vibration pattern is caused by a flow of the known fluid as the known fluid travels through the pipe in an unadulterated form; the processor taking subsequent readings from the smart sensor to generate a new vibration pattern; the processor, in response to the new vibration pattern being different, beyond a predefined range, from the baseline vibration pattern, matching the new vibration pattern with a known vibration pattern in order to identify a specific contaminant of the known fluid, wherein the known vibration pattern is known to occur when the specific contaminant is flowing through the pipe with the known fluid; and the processor determining a specific gravity of the specific contaminant by matching the new vibration pattern with the known vibration pattern.