Microcontroller-based condition monitoring system