The rail industry is constantly facing challenges related to safety with regard to the detection of surface cracks and internal defects within rail tracks. Significant focus has been placed on developing sensor technologies that would facilitate the detection of flaws that compromise rail safety. In parallel, robot automation has demonstrated significant advancements in the integration of sensor technologies within end effectors. This study investigates the novel integration of an ultrasonic sensor within a robotic platform specifically for the application of detecting surface cracks and internal defects within rail tracks. The performance of the robotic sensor system was assessed on a rail track specimen containing sacrificial surface cracks and internal defects and then compared against a manual detection system. The investigation concludes that the robotic sensor system successfully identified internal defects in the web region of the rail track when utilising a 60° and 70° wedged probe, with a frequency range between 4 MHz and 5 MHz. However, the surface crack investigation proved that the transducer was insensitive to the detection of cracks, possibly due to the inadequate angle of the wedged probe. The overall outcome of the study highlights the potential that robotic sensor systems have in the detection of internal defects and characterises the limitations of surface crack identification to assist in enhancing rail safety.