An IoT condition monitoring system for resilience based on spectral analysis of vibration