This paper proposes an automatic railway crack locator system that uses infrared (IR) and ultrasonic sensors to detect cracks in railway tracks. The system is intended to improve railway safety by automatically detecting defects in tracks and sending the location information to maintenance crews via GSM. Key components of the system include an Arduino microcontroller, IR and ultrasonic sensors to detect cracks and measure distances, a GSM module to communicate crack locations, and a GPS module to provide precise location of cracks.