are these real train tracks?
are the broken parts just small cracks, or seperation in the track?
its hard to tell you what sensor if i dont know the details, could you explain more?
you can probably just use a photoresistor sensor
, so when the light
'breaks,' that is where the track is damaged.