TinyML for Real-Time Fault Detection in Machines