Text this: A two-step machine learning approach for predictive maintenance and anomaly detection in environmental sensor systems