Optical fiber based technique for continuous level sensing