A dual-parameter optical sensor has been realized by UV-writing a long-period and a Bragg grating structure in D-fiber. The hybrid configuration permits the detection of the temperature from the latter and measuring the external refractive index from the former responses, respectively. The employment of the D-fiber allows as effective modification and enhancement of the device sensitivity by cladding etching. The grating sensor has been used to measure the concentrations of aqueous sugar solutions, demonstrating the potential capability to detect concentration changes as small as 0.01%.