This is a level sensor.
For harsh, abrasive (ie coal), or corrosive processes in which the product will damage the sensor, you can use a radiation based source which can be situated outside the storage vessel and it will shoot through the metal to the other side.