Can’t we just use some form of ultrasonic wave from one end and detect at other end ?
The safest class of substances I can think of are unusual isotopes.
They're chemically identical to the regular elements, which is what matters for life forms, but can be detected by scientific instruments.