An optical fiber based technique for continuous level sensing