This document describes a proposed self-reliant railway accident averting system using mechatronics. It aims to address accidents caused by train derailments, improper track maintenance, collisions at level crossings, and faults in the train track. The system utilizes a PLC-based fault detection technology with vibration monitoring and ultrasonic sensors to detect breaks or cracks in the railway track in real-time. It also automates the manual gate control system at level crossings using sensors, PLC, and gear motors to open and close gates automatically when trains approach and pass to prevent collisions. This proposed accident averting arrangement seeks to introduce reliable and safe railway operations by reducing human errors and oversight compared to current manual methods.