Text this: Soliton for optical sensor: numerical studies